Created
April 20, 2020 11:48
-
-
Save jeakwon/caf6e586c388310e1856c2cc76b4f735 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 pandas as pd | |
from sqlalchemy import create_engine | |
engine = create_engine('postgresql://id:password@localhost:port/database') | |
df.to_sql('table_name', engine) | |
pd.read_sql("select * from users limit 1", engine) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment