Created
October 16, 2015 08:24
-
-
Save kirel/99cb1f32ca97aced8019 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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