我编写了这段代码以将数据集加载到数据帧中。数据集以pickle文件的形式提供,但它抛出一个错误:
ModuleNotFoundError:找不到名为'pandas.core.indexes'的模块
我尝试了所有提供的解决方案:
import pickle
import pandas
dbfile = open(dataset loction,'rb')
df = pickle.load(dbfile)
我尝试了所有提供的解决方案:
- 更新了pandas
- 使用
df = pandas.read_picle(dataset location)
C:\installs\WinPython-64bit-3.6.1.0Qt5\python-3.6.1.amd64>python -m pip install pickle
Collecting pickle
Could not find a version that satisfies the requirement pickle (from versions: )
No matching distribution found for pickle
ModuleNotFoundError Traceback (most recent call last) <ipython-input-14-2a34c4ce9aec> in <module>() 2 import pandas 3 dbfile = open(r'C:\Users\raman\Downloads\df_train_api.pk','rb') ----> 4 df = pickle.load(dbfile) 5 6 df ModuleNotFoundError:找不到名为'pandas.core.indexes'的模块
- RAMAN BHATIA