Skip to content

Commit 3309dd7

Browse files
authored
fix: deprecation warning in __init__ (#1839)
1 parent 23c7eaf commit 3309dd7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/ydata_profiling/__init__.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import warnings # isort:skip # noqa
77

88
import importlib.util # isort:skip # noqa
9+
from warnings import warn
910

1011
from ydata_profiling.compare_reports import compare # isort:skip # noqa
1112
from ydata_profiling.controller import pandas_decorator # isort:skip # noqa
@@ -25,6 +26,15 @@
2526

2627
warnings.simplefilter("ignore", category=NumbaDeprecationWarning)
2728

29+
warn(
30+
"""
31+
`import ydata_profiling` is deprecated and will not receive more updates.
32+
Please install data-profiling via `pip install data-profiling` and use `import data_profiling` instead.
33+
""",
34+
DeprecationWarning,
35+
stacklevel=2,
36+
)
37+
2838
__all__ = [
2939
"pandas_decorator",
3040
"ProfileReport",

0 commit comments

Comments
 (0)