[DB] Pandas와 SQLite
1) DataFrame 객체를 SQLite DB에 저장하기 import pandas as pd from pandas import Series, DataFrame import sqlite3 raw_data = {'col0': [1, 2, 3, 4], 'col1': [10, 20, 30, 40], 'col2':[100, 200, 300, 400]} df = DataFrame(raw_data) print(df) con = sqlite3.connect("c:/Users/neo21/DB/kospi.db") # DataFrame.to_sql(name, con, flavor='sqlite', schema=None, if_exists='fail', index=True, index_label=None, chunksize..
2022. 3. 4.