Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

to_sql pandas

>>> df.to_sql('users', con=engine)
>>> engine.execute("SELECT * FROM users").fetchall()
[(0, 'User 1'), (1, 'User 2'), (2, 'User 3')]
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #pandas
ADD COMMENT
Topic
Name
6+1 =