Skip to main contentSkip to solution

Match the LIST-I with LIST-II

LIST-ILIST-II
A.sqlalchemyI.function to save a DataFrame to a text or csv file
B.pymysqlII.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 IList 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().

Keyboard Shortcuts

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