sqlite在pycharm的使用,pandas转换到sqlite

from sqlalchemy import create_engine
import pandas as pd
df=pd.read_excel('资金流向.xlsx')
# 新建数据库的名称
engine= create_engine('sqlite:///choice.db')
# 把pandas数据转化为sql,存入到CaptionFlowb sql表
df.to_sql('CaptionFlow', engine)

猜你喜欢

转载自blog.csdn.net/weixin_45631815/article/details/115003163