Pandas Writing
Write to a SQL database¶
Connect to the db¶
Save to the db¶
result = []
df = pd.DataFrame(result)
df.to_sql(name="table_name",
con=connection,
index=False,
if_exists='replace', # or append
)
Last update:
2023-04-24