Importing Pandas gives error AttributeError: module 'pandas' has no attribute 'core' in iPython Notebook

前端 未结 19 854
夕颜
夕颜 2020-11-30 09:50

I am running a iPython notebook via the Anaconda Navigator app (version 1.1.0). When I want to import pandas it gives me a strange error. I thought the Anaconda app included

19条回答
  •  星月不相逢
    2020-11-30 10:13

    There is an other weird reason this happens. If you have a file called pandas.py or a directory called pandas in the same or nested levels, that library is used instead and fails to work. Rename the folder and restart the env and it started working. Faced this

提交回复
热议问题