We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c6ab2f9 commit e39068aCopy full SHA for e39068a
pandas/core/indexes/base.py
@@ -2395,6 +2395,7 @@ def is_numeric(self) -> bool:
2395
def is_object(self) -> bool:
2396
"""
2397
Check if the Index is of the object dtype.
2398
+
2399
.. deprecated:: 2.0.0
2400
Use `pandas.api.types.is_object_dtype` instead.
2401
@@ -2431,14 +2432,12 @@ def is_object(self) -> bool:
2431
2432
>>> idx.is_object()
2433
False
2434
-
2435
warnings.warn(
2436
f"{type(self).__name__}.is_object is deprecated."
2437
"Use pandas.api.types.is_object_dtype instead",
2438
FutureWarning,
2439
stacklevel=find_stack_level(),
2440
)
2441
2442
return is_object_dtype(self.dtype)
2443
2444
@final
0 commit comments