Unpickling dictionary that holds pandas dataframes throws AttributeError: 'Dataframe' object has no attribute '_data'

前端 未结 3 478
伪装坚强ぢ
伪装坚强ぢ 2021-01-11 19:39

I have a class that performs analyses and attaches the results, which are pandas dataframes, as object attributes:

>>> print(test.image.locate_DF)
           


        
3条回答
  •  温柔的废话
    2021-01-11 20:16

    Maybe the problem has been solved.
    Emmm, but I still want to add some comments.

    I save the pkl file on the server, but when I load it on my MAC, it crashed, showing 'Dataframe' object has no attribute '_data'

    Finally, I found that pandas on my Mac is 1.0.5 but 1.1.5 on the server. When I updated it to the latest, it just worked.

提交回复
热议问题