I have a Pandas grouped dataframe with a column called 'PART_ID' in all groups and there may be duplicates of the value in this column within each group. I want to unique-ify within each group based in the value of this column and retain only the unique ones.
I thought it would simply be a case of .unique() on the grouped object but this doesn't work. There is no set option either. How do I get the unique rows within the groups?. E.g grouping on column 1
A 10
A 10
A 12
B 10
B 15
should give
A 10
A 12
B 10
B 15