We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 022da18 commit f0aa553Copy full SHA for f0aa553
pandas/core/indexes/base.py
@@ -2427,6 +2427,7 @@ def is_numeric(self) -> bool:
2427
def is_object(self) -> bool:
2428
"""
2429
Check if the Index is of the object dtype.
2430
+
2431
.. deprecated:: 2.0.0
2432
Use `pandas.api.types.is_object_dtype` instead.
2433
@@ -2463,14 +2464,12 @@ def is_object(self) -> bool:
2463
2464
>>> idx.is_object()
2465
False
2466
-
2467
warnings.warn(
2468
f"{type(self).__name__}.is_object is deprecated."
2469
"Use pandas.api.types.is_object_dtype instead",
2470
FutureWarning,
2471
stacklevel=find_stack_level(),
2472
)
2473
2474
return is_object_dtype(self.dtype)
2475
2476
@final
0 commit comments