0

I have a dataframe that looks something like this:

  name   color    qty
   A     blue     10     
   B     red      3
   B     yellow   5 
   B     green    12
   C     white    20
   C      red     3

I want to drop rows that have name duplicated, but keep the first row so that I can get this:

  name   color    qty
   A     blue     10     
   B     red      3
   C     white    20

How can I achieve this?

Kalamazoo
  • 121
  • 9

0 Answers0