Saurabh Gupta
Saurabh Gupta

Reputation: 31

pandas profiling import error : not able to import pandas_profiling package

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'

Upvotes: 3

Views: 2076

Answers (1)

Faruque Ahmed
Faruque Ahmed

Reputation: 21

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)

Upvotes: 2

Related Questions