-
-
Save kaigouthro/9106160ddcd1d5c3379e9122188200b4 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 | |
import sqlite3 | |
conn = sqlite3.connect('/path/to/where/you/want/to/store/your/db') | |
c = conn.cursor() | |
df = pd.DataFrame([{'Column1':'Data','Column2':'Base'}]) | |
df.to_sql("SQLDatabase", conn, if_exists="replace") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment