I'd like to know if it's possible to create a pivot table in Python and then export that pivot table with all its sorting properties into excel. Note I don't want just to values to be exported, but the entire pivot table with all its properties.
So when I go to the exported excel pivot table, I can still see its report filter, column label, row labels, and field list. It should be as if I manually created the pivot table.