I want to drop duplicates on my dataframe. I know I can use subset to type out all columns I want to perform it on, however I have 50+ columns. Is there a way to include all columns and exclude a subset?
For example include column B,C,D,E,G,H,I, etc. and exclude A and F.
Something like:
df.drop_duplicates(subset_to_exclude=['A', 'F'])
Thanks.