Question:

The process of changing the structure of a DataFrame using function pivot() is known as .............

Show Hint

Pivot reshapes the DataFrame, while transpose only flips it. Don’t confuse these two.
Updated On: Sep 18, 2025
  • Transpose
  • Reindexing
  • Resetting
  • Reshaping
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is D

Solution and Explanation

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.

Step 3: Correct interpretation
\[ \text{pivot() = Reshaping the DataFrame} \] \[ \boxed{\text{Correct Answer = Reshaping}} \]
Was this answer helpful?
0
0

Questions Asked in CUET exam

View More Questions