Match List-I with List-II
List-I List-II Function / Library Usage (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
Match List-I with List-II
| List-I | List-II |
|---|---|
| Function / Library | Usage |
| (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 I | List 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.
Related questions:
2026: 29 May Shift 1
2026: 31 May Shift 1