Skip to content

Commit efb55ea

Browse files
tehuntermroeschke
authored andcommitted
DOC: fix deprecation message for is_period_dtype (pandas-dev#60543)
[DOC] fix deprecation message Co-authored-by: Matthew Roeschke <[email protected]>
1 parent df8b8c5 commit efb55ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/dtypes/common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ def is_period_dtype(arr_or_dtype) -> bool:
430430
Check whether an array-like or dtype is of the Period dtype.
431431
432432
.. deprecated:: 2.2.0
433-
Use isinstance(dtype, pd.Period) instead.
433+
Use isinstance(dtype, pd.PeriodDtype) instead.
434434
435435
Parameters
436436
----------

0 commit comments

Comments
 (0)