且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

TypeError:“DataFrame"类型的对象不是 JSON 可序列化的

更新时间:2022-11-22 20:45:38

你的 df 仍然是一个数据框,因为你没有将它分配为 json.

Your df is still a data frame because you haven't assigned it as json.

   df = df.to_json()

这应该可行.如果没有,请告诉我.

This should work. Let me know if not.