- Changing the structure of DataFrame to represent data in desired form.
Stacking
increases the height of data frame.stack()
method helps us to move the columns into row values.
Unstacking
decreases the height of data frame.unstack()
method helps us to move the row values to seperate columns.