I have this output :
[Pandas-profiling] ImportError: cannot import name 'ABCIndexClass' from 'pandas.core.dtypes.generic'
when trying to import pandas-profiling in this fashion :
from pandas_profiling import ProfileReport
It seems to import pandas-profiling correctly but struggles when it comes to interfacing with pandas itself. Both libraries are currently up to date through conda. It doesn't seem to match any of the common problems associated with pandas-profiling as per their documentation, and I can't seem to locate a more general solution of importing the name ABCIndexClass
.
Thanks
Thanks to the @aflyingtoaster's answer, the following workaround has worked fine for me:
Pandas v1.3 renamed the ABCIndexClass
to ABCIndex
. The visions
dependency of the pandas-profiling
package hasn't caught up yet, and so throws an error when it can't find ABCIndexClass
. Downgrading pandas to the 1.2.x series will resolve the issue.
Alternatively, you can just wait for the visions
package to be updated.
ABCIndexclass to ABCIndex
go to user>annaconda 3>Lib> site package > visions > dtypes > boolean.py
open boolean.py in words
go to line where it says ABCIndexclass and change it to ABCIndex
I had this issue in colab and none of the previous answers covered that environment, so I'd like to share what works for me - !pip install https://github.com/ydataai/pandas-profiling/archive/master.zip
which just simply install the latest pandas-profiling instead of the default one or 2.7.1 etc
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With