Skip to content

Commit 1e530b6

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

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)