Skip to content

Instantly share code, notes, and snippets.

@kirel
Created October 16, 2015 08:24
Show Gist options
  • Save kirel/99cb1f32ca97aced8019 to your computer and use it in GitHub Desktop.
Save kirel/99cb1f32ca97aced8019 to your computer and use it in GitHub Desktop.
import mysql.connector
from sqlalchemy import create_engine
engine = create_engine('mysql+mysqlconnector://root:@localhost/test')
import pandas as pd
with engine.connect() as conn, conn.begin():
data = pd.read_sql_table('table', conn)
data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment