Match the LIST-I with LIST-II
LIST-I LIST-II A. sqlalchemy I. function to save a DataFrame to a text or csv file B. pymysql II. contains connection string C. create_engine() III. to install the database driver D. to_csv( ) IV. provides a function create_engine() that enables the connection to be established
Match the LIST-I with LIST-II
| LIST-I | LIST-II | ||
|---|---|---|---|
| A. | sqlalchemy | I. | function to save a DataFrame to a text or csv file |
| B. | pymysql | II. | contains connection string |
| C. | create_engine() | III. | to install the database driver |
| D. | to_csv( ) | IV. | provides a function create_engine() that enables the connection to be established |
Solution
✅ Correct Option: 2
| List I | List II |
|---|---|
| (A) sqlalchemy | (IV) provides a function create_engine() that enables the connection to be established |
| (B) pymysql | (III) to install the database driver |
| (C) create_engine() | (II) contains connection string |
| (D) to_csv( ) | (I) function to save a DataFrame to a text or csv file |
The sqlalchemy library supplies create_engine(), and the connection string is passed to that function. pymysql is the MySQL driver that must be installed for the connection to work.
Option 4: it pairs sqlalchemy with the driver installation, but that is the job of pymysql. sqlalchemy is the library that provides create_engine().
Related questions:
2025: 14 May Shift 1
2025: 30 May Shift 2