Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

961
Views
ImportError: cannot import name 'ABCIndexClass' from 'pandas.core.dtypes.generic'

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

over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

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.

over 4 years ago · Santiago Trujillo Report

0

Thanks to the @aflyingtoaster's answer, the following workaround has worked fine for me:

  1. Edit the file "~/[your_conda_env_path]/lib/site-packages/visions/dtypes/boolean.py"
  2. Find the row "from pandas.core.dtypes.generic import ABCIndexClass, ABCSeries" and just replace ABCIndexClass for ABCIndex.
  3. Save the boolean.py file and enjoy your report!
over 4 years ago · Santiago Trujillo Report

0

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

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!