I wrote this code to load a dataset into a data frame. Dataset is given in a pickle file but it throws an error:
ModuleNotFoundError: No module named 'pandas.core.indexes'
import pickle
import pandas
dbfile = open(dataset loction,'rb')
df = pickle.load(dbfile)
I tried all the fixes given:
- Updated the pandas
- used
df = pandas.read_picle(dataset location)
Tried installing pickle using pip but getting this error
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: No module named 'pandas.core.indexes'
– RAMAN BHATIAimport pickle import pandas dbfile = open(r'C:\Users\raman\Downloads\df_train_api.pk','rb') df = pickle.load(dbfile) df
– RAMAN BHATIA