3

I cannot import name DataError from pandas.core.base

When I import package:

from pandas_profiling import ProfileReport

it shows error:

cannot import name 'DataError' from 'pandas.core.base'

1 Answers1

2

The new version of Python (3.11) does not work with pandas_profiling. However, the old version works fine.

My version is 3.8.8, and it works in the command line:

import pandas_profiling as pp  
data = pd.read_csv( "-----.csv")
pp.ProfileReport(data)
Vickel
  • 7,879
  • 6
  • 35
  • 56