Step 1: Understanding pivot()
- Pivot reorganizes the structure of a DataFrame by transforming data.
- It reshapes data by turning unique column values into new columns.
Step 2: Differentiating from other options
- Transpose: Only flips rows ↔ columns.
- Reindexing: Changes the row/column labels.
- Resetting: Resets the index of DataFrame.