Python — read_pickle ImportError: No module named indexes.base

非 Y 不嫁゛ 提交于 2019-12-03 22:11:25
pmaniyan

This error can be caused by a version mismatch between the version of pandas used to save the dataframe and the version of pandas used to load it.

Please check the Python and Pandas version in both the machines.

Also, if versions are same, can you please share the dataframe that you used with to_pickle(), so that we can look into it.

Using pd.read_pickle can also help backwards compatibility if you are trying to read a dataframe only. See github issue.

I unfortunately have a dictionary of dataframes, so am going to try to use a virtual environment with an older version to load, re-save only the dataframes, and then use pd.read_pickle.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!