Skip to main contentSkip to solution

Match List-I with List-II

List-IList-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 IList 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).

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question