Skip to content

Instantly share code, notes, and snippets.

@atandy
Created May 1, 2015 05:18
Show Gist options
  • Save atandy/495786403effb9df9642 to your computer and use it in GitHub Desktop.
Save atandy/495786403effb9df9642 to your computer and use it in GitHub Desktop.
from sqlalchemy import create_engine
engine = create_engine('mysql://username:password@hostname:port/database_name')
dataframe.to_sql('table_name', con=engine, flavor='mysql', if_exists='append', index=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment