Filter dataframe by unique data in a group #263
Unanswered
spleshakov
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I want to exclude repetitive dataframe entries by column groups. For example, having this dataframe
I need to create a group by columns
["county", "split", "trio"]
(ignoringzipcode
column)And then exclude repetitive rows of the group, so the output is this dataframe
I went through the docs and the closest way to achieve this is through the groups. But I would need to specify all unique combinations, and thus need to know county names which doesn't work for me
Is there a way to achieve this?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions