Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

958
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda