"'pandas' has no attribute 'compat' (most likely due to a circular import)"

Hey guys, how are you all doing?

I’m currently working on the Data Aggregation mission and I’m trying to work on a Jupyter Notebook outside Dataquest portal. However, everytime I try to call the dataset I get this error.

import pandas as pd

data = pd.read_csv('World_Happiness_2015.csv')

The error is:

AttributeError                            Traceback (most recent call last)
<ipython-input-3-41f399e6b5dd> in <module>
----> 1 import pandas as pd
      3 data = pd.read_csv('World_Happiness_2015')
      4 data.describe()

~\anaconda3\lib\site-packages\pandas\__init__.py in <module>
    191 # GH 27101
    192 # TODO: remove Panel compat in 1.0
--> 193 if pandas.compat.PY37:
    195     def __getattr__(name):

AttributeError: partially initialized module 'pandas' has no attribute 'compat' (most likely due to a circular import)

I’ve already tried to work with different datasets but it doesn’t work either. And both files (dataset and the notebook) are at the same directory. Can anyone help me with this? I’d appreciate.

Hi! Have you tried updating your pandas module or reinstalling it?