Skip to content

Commit

Permalink
DOC: fix deprecation message for is_period_dtype (#60543)
Browse files Browse the repository at this point in the history
[DOC] fix deprecation message

Co-authored-by: Matthew Roeschke <[email protected]>
  • Loading branch information
tehunter and mroeschke authored Dec 17, 2024
1 parent 45ee782 commit 1e530b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/core/dtypes/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ def is_period_dtype(arr_or_dtype) -> bool:
Check whether an array-like or dtype is of the Period dtype.
.. deprecated:: 2.2.0
Use isinstance(dtype, pd.Period) instead.
Use isinstance(dtype, pd.PeriodDtype) instead.
Parameters
----------
Expand Down

0 comments on commit 1e530b6

Please sign in to comment.