remove the extra count columns created by pandas groupby

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?

Hi Spyf,

You might get better quality answers if you take the time to show us
some working code that we can experiment with.

http://www.sscce.org/

http://www.catb.org/esr/faqs/smart-questions.html

“Be a good listener,” Dale Carnegie advised in his 1936 book How To Win
Friends And Influence People. “Ask questions the other person will enjoy
answering.”

This applies to technical questions as well as interpersonal
relationships. Ask good questions and you increase the chances of
getting good answers.