-1

When I try to from pandas_profiling import ProfileReport I'm getting this error:

PydanticImportError: 'BaseSettings' has been moved to the 'pydantic-settings' package. See https://docs.pydantic.dev/2.3/migration/#basesettings-has-moved-to-pydantic-settings for more details

Error message that I am seeing

enter image description here

Before this, I did !pip install pandas-profiling, it works - getting error after this

I am trying this code:

from pandas_profiling import ProfileReport
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
  • [Please do not upload images of errors.](//meta.stackoverflow.com/q/285551) Instead, include the _full_ error message in your question. In this specific cast, it's important to see _where_ `BaseSettings` was imported from. You can [edit] your question accordingly. – He3lixxx Sep 01 '23 at 01:26

1 Answers1

1

From my understanding pandas-profiling was deprecated quite a while now.

Try the following please:

#this will ensure that the most recent version is installed !pip install ydata-profiling

from ydata_profiling import ProfileReport

FabC
  • 26
  • 3