Skip to main contentSkip to solution

_______ and ____ are two mandatory libraries for faciliting import and export of data between Pandas and MySQL.

Solution

✅ Correct Option: 4

pymysql is a Python driver that connects to a MySQL database, and sqlalchemy provides the engine that Pandas uses in read_sql() and to_sql() to read from and write to MySQL tables.

A typical connection looks like create_engine("mysql+pymysql://user:password@host/db").


Options 1, 2 and 3: plmysql and sqlmyalchemy are not real libraries. They are look-alike misspellings of pymysql and sqlalchemy.

Keyboard Shortcuts

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