I was importing pandas in jupyter notebook but it gives an error stating that module 'pandas' has no attribute 'compat'
here my code snippet
import pandas as pd
and this is the error I got while importing
AttributeError Traceback (most recent call last) in ----> 1 import pandas as pd
~\Anaconda3\lib\site-packages\pandas__init__.py in 194 # GH 27101 195 # TODO: remove Panel compat in 1.0 --> 196 if pandas.compat.PY37: 197 198 def getattr(name):
AttributeError: module 'pandas' has no attribute 'compat'
How to solve this, guys