Skip to content

Instantly share code, notes, and snippets.

@anna-anisienia
Created September 29, 2020 20:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anna-anisienia/68191aabb8982048d47f97b33f47ced1 to your computer and use it in GitHub Desktop.
Save anna-anisienia/68191aabb8982048d47f97b33f47ced1 to your computer and use it in GitHub Desktop.
import pandas as pd
from mysql_conn import get_mysql_conn
with get_mysql_conn(db='mytestdb') as conn:
df = pd.read_sql('SELECT * FROM mytable', conn)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment