Feb-02-2021, 11:25 PM
Is there anyway to remove the extra count columns created by pandas groupby?
I'm doing a groupby nunique on multiple columns so it does the grouping and also creates duplicate columns with counts (numbers)...
I don't want these columns as I am exporting to CSV . Can anyone suggest a solution?
I'm doing a groupby nunique on multiple columns so it does the grouping and also creates duplicate columns with counts (numbers)...
I don't want these columns as I am exporting to CSV . Can anyone suggest a solution?