我一直试图将一个巨大的DF加载到postgres表中,SqlAlchemy但是该过程总是在一段时间后被终止。有没有更好的方法来处理熊猫?...>>engine = create_engine('postgresql://stargateuser:5tar9ate@localhost/stargate',encoding='utf-8', echo=True)>>MainName.to_sql("landingpage_mainname", con=engine, if_exists="replace")Killed
1 回答
慕勒3428872
TA贡献1848条经验 获得超6个赞
这行得通!谢谢@JohnChing
MainName.to_sql("landingpage_mainname", con=engine, if_exists="replace", chunksize=200000)
添加回答
举报
0/150
提交
取消