We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4662cd commit 83e95e0Copy full SHA for 83e95e0
pandas/core/categorical.py
@@ -5,3 +5,4 @@
5
FutureWarning, stacklevel=2)
6
7
from pandas.core.arrays import Categorical # noqa
8
+from pandas.core.dtypes.dtypes import CategoricalDtype # noqa
pandas/tests/api/test_api.py
@@ -259,3 +259,8 @@ def test_categorical_move(self):
259
260
with tm.assert_produces_warning(FutureWarning):
261
from pandas.core.categorical import Categorical # noqa
262
+
263
+ sys.modules.pop("pandas.core.categorical", None)
264
265
+ with tm.assert_produces_warning(FutureWarning):
266
+ from pandas.core.categorical import CategoricalDtype # noqa
0 commit comments