Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

df to sql pandas sql achemy

from sqlalchemy import create_engine
engine = create_engine('sqlite://', echo=False)
df.to_sql('users', con=engine)
engine.execute("SELECT * FROM users").fetchall()
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #df #sql #pandas #sql #achemy
ADD COMMENT
Topic
Name
1+6 =