dataframe写入时提示类型不匹配

请教一下,如果我append一个 dataframe到table的时候,碰到
RuntimeError: <Exception> in append: column [date], expect type DATETIME, got type STRING

attachments-2024-03-l8SQE2h26608d0805e087.jpg但是df['date'] 并不是string

请先 登录 后评论

1 个回答

wfHuang

dataframe对象的列顺序需要与所写入表的列顺序保持一致。

请先 登录 后评论
  • 1 关注
  • 0 收藏,100 浏览
  • peter 提出于 2024-03-31 10:55