Skip to content Skip to sidebar Skip to footer

Convert Pivot Tables To Dataframe

I have a pivot table, for example, first second bar one two foo one two How do I change it back to a normal dataframe with all values

Solution 1:

if table is the name of your pivottable and df is the new dataframe,

df = table.reset_index()

Post a Comment for "Convert Pivot Tables To Dataframe"