This is working fine
from sqlalchemy import create_engine import pandas as pd db_connection_str = \'mysql+pymysql://User:PW@localhost/DBName\' db_connection = cr