Est. Budget: $20.00
An easy for somebody who knows Pandas well. I just need to sort the columns in a pivot table in a custom way, but have been struggling to work out how to do it.
I make a DataFrame as follows:
newdf = pandas.pivot_table(df, rows=['Survey Name', 'Task Name', 'User', 'Counter', 'Date', 'Time'], cols=['Behaviour', 'Class'], aggfunc=len)
How do I sort it so that the columns are ordered in a custom way?
I would like to provide a list ...