How to read brine files created from older versions of pandas with a newer version of pandas?

I have a pickled Dataframe that I saved with the old version of pandas (0.19.2). Trying to read it (pd.read_pickle ()) with the new version of pandas (0.20.3) throws an error:

ModuleNotFoundError: no module named 'pandas.indexes'

Is there any way I can get this pickle framework with the new version of pandas without having to go back and save it differently in the old version?

If not, what is the safest and easiest way to store data so that it can be easily read in the future? I read about the HDFStore, which seems pretty bulky ....

+4
source share

Source: https://habr.com/ru/post/1686929/


All Articles