Match List-I with List-II
List-I List-II (A). pivot( ) (I). Transform and produce a single value from an array. (B). GROUP BY( ) (II). Split - apply - combine. (C). pivot_table( ) (III). Reshape and create a new DataFrame from the original. (D). aggregate( ) (IV). Aggregates the values from rows with duplicate entries for the specified columns.
Match List-I with List-II
| List-I | List-II |
|---|---|
| (A). pivot( ) | (I). Transform and produce a single value from an array. |
| (B). GROUP BY( ) | (II). Split - apply - combine. |
| (C). pivot_table( ) | (III). Reshape and create a new DataFrame from the original. |
| (D). aggregate( ) | (IV). Aggregates the values from rows with duplicate entries for the specified columns. |
Solution
✅ Correct Option: 2
| List I | List II |
|---|---|
| (A) pivot( ) | (III) Reshape and create a new DataFrame from the original. |
| (B) GROUP BY( ) | (II) Split - apply - combine. |
| (C) pivot_table( ) | (IV) Aggregates the values from rows with duplicate entries for the specified columns. |
| (D) aggregate( ) | (I) Transform and produce a single value from an array. |
pivot( ) only reshapes data and fails if the index/column pair has duplicates. pivot_table( ) handles those duplicates by aggregating them (the default is mean).
Related questions:
2025: 15 May Shift 2
2025: 13 May Shift 2
2026: 31 May Shift 1