Skip to main contentSkip to solution

sqlalchemy library is used __________.

Solution

✅ Correct Option: 1

SQLAlchemy is a Python SQL toolkit that connects Python programs to databases such as MySQL. Its create_engine() function takes a connection URL containing the username, password, host and database name, and the resulting engine is used to read or write tables, for example with pandas read_sql() and to_sql().


Option 2: SQLAlchemy does not install a driver. The driver (for example pymysql or mysql-connector-python) is installed separately with pip, and SQLAlchemy only uses it.

Options 3 and 4: aggregate functions on a DataFrame are done by pandas (groupby, agg), and visualization is done by matplotlib or seaborn.

Keyboard Shortcuts

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