import pandas as pd
import pickle as pic
file_obj = open(‘D:/BAML/Production/EQFICC-Python/FCCV/2005-10-09_RFCV.pickle’, ‘rb’)
data = pic.load(file_obj)
runfile(‘D:/BAML/Production/EQFICC-Python/FCCV/json.py’, wdir=’D:/BAML/Production/EQFICC-Python/FCCV’)
Traceback (most recent call last):
File “D:BAMLProductionEQFICC-PythonFCCVjson.py”, line 15, in
data = pic.load(file_obj)
AttributeError: Can’t get attribute ‘Index’ on <module ‘main‘ from ‘D:BAMLProductionEQFICC-PythonFCCVjson.py’>
I tried multiple things but not to avail. I want to read the data from the pickle file into a dataframe
Amey is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.