ImportError: No module named 'pandas.indexes'

前端 未结 7 986
独厮守ぢ
独厮守ぢ 2020-12-01 17:49

Importing pandas didn\'t throw the error, but rather trying to read a picked pandas dataframe as such:

import numpy as np
import pandas as pd
import matplotl         


        
7条回答
  •  萌比男神i
    2020-12-01 18:24

    I had this problem from trying to open a pickled dataframe made with pandas 0.18.1 using pandas 0.17.1. If you are using pip, upgrade pandas with:

    pip install --upgrade pandas
    

    If you are using a library like anaconda, use:

    conda upgrade pandas
    

    If you need to have both versions of pandas on your machine, consider using virtualenv

提交回复
热议问题