Skip to content

DOC: Incorrect deprecation example for is_period_dtype #60542

@tehunter

Description

@tehunter

Pandas version checks

  • I have checked that the issue still exists on the latest versions of the docs on main here

Location of the documentation

https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.api.types.is_period_dtype.html#pandas.api.types.is_period_dtype

Documentation problem

Suggests the user use isinstance(dtype, pd.Period) instead, when they really need to use Use isinstance(dtype, pd.PeriodDtype)

Suggested fix for documentation

Update message to reference correct class

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions