Jupyter notebook (VS Code, Mac) PydanticImportErrors... #1465
nickgreengithub
started this conversation in
General
Replies: 1 comment
-
I am getting the same error message. Were you to resolve it? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Steps
I've followed the install instructions multiple times and I'm stuck before I even start. Google Collab also doesn't recognise ydata_profiling. Any help would be appreciated.
pip3 install ydata-profiling (mac)
... then I tried running this .ipynb in vs code..
import numpy as np
import pandas as pd
from ydata_profiling import ProfileReport
df = pd.DataFrame(np.random.rand(100, 5), columns=["a", "b", "c", "d", "e"])
Error
I'm getting PydanticImportError against:
----> 3 from pandas_profiling import ProfileReport
File /opt/homebrew/lib/python3.11/site-packages/pandas_profiling/init.py:8
5 import importlib.util
6 from warnings import warn
----> 8 from ydata_profiling.compare_reports import compare
File /opt/homebrew/lib/python3.11/site-packages/ydata_profiling/init.py:7
1 """Main module of ydata-profiling.
2
3 .. include:: ../../README.md
4 """
5 import importlib.util
----> 7 from ydata_profiling.compare_reports import compare
8 from ydata_profiling.controller import pandas_decorator
9 from ydata_profiling.profile_report import ProfileReport
...
295 raise PydanticImportError(f'
{import_path}
has been removed in V2.')PydanticImportError:
BaseSettings
has been moved to thepydantic-settings
package. See https://docs.pydantic.dev/2.3/migration/#basesettings-has-moved-to-pydantic-settings for more details.Beta Was this translation helpful? Give feedback.
All reactions