Created
September 21, 2018 10:58
-
-
Save pAulseperformance/17daf4383bd15fb78964685645c149a2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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