Skip to main contentSkip to solution

Match List-I with List-II

List-IList-II
Function / LibraryUsage
(A) reset_index and set_index(I) changing the structure of the DataFrame
(B) pivot() and pivot_table()(II) labels of a row or column can be changed in a DataFrame
(C) pymysql and sqlalchemy(III) for facilitating the import and export of data
(D) describe()(IV) displays the statistical values in a single command

Solution

✅ Correct Option: 3
List IList II
(A) reset_index and set_index(II) labels of a row or column can be changed in a DataFrame
(B) pivot() and pivot_table()(I) changing the structure of the DataFrame
(C) pymysql and sqlalchemy(III) for facilitating the import and export of data
(D) describe()(IV) displays the statistical values in a single command

reset_index and set_index change the index labels, while pivot and pivot_table reshape the DataFrame by turning values into rows and columns.

pymysql and sqlalchemy connect Python to a database, so they are used to import and export data.

Keyboard Shortcuts

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