two function in Python for pivoting dataframe
Answers
Answered by
0
Answer:
Pivot() and pivot_table() are methods of Pandas which support pivoting.
Pivot() - This Reshape data based on column values. This uses the unique values of the stated index/columns to form axes of the derived DataFrame.
Pivot_table() - Create a 'spreadsheet-style pivot table' as a 'DataFrame'.
Similar questions