I am trying to load a pickle file that contains a dictionary:
import pickle as pk
# load dMAD
dMAD_open = open(r"dMAD.pickle", "rb")
dMAD = pk.load(dMAD_open)
dMAD_open.close()
type(dMAD) # prints correctly: "dict"
dMAD # throws the error message
The loading works without raising an error, but once I try to print dMAD (which should retrun the dictionary) I get this error message:
AttributeError: 'DataFrame' object has no attribute '_data'
I already tried different conda environments with different python installations (python 3.7.7 and 3.8.2). The pickle file and my code are in the same directory. It works on a different computer. It doesn't work on mine, even when I use the same conda environment.
How can I solve this issue? Any help appreciated.