Skip to content

DOC: Consistency with warning messages #54892

Closed
@paulpellissiercompass

Description

@paulpellissiercompass

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

The change is in https://github.com/pandas-dev/pandas/blob/main/pandas/core/dtypes/common.py#L501

Documentation problem

I think that to be consistent the type on the warning should be pd.CategoricalDtype.
This is the case for all the other pandas type and in all the other warnings.

Suggested fix for documentation

As explained this should be changed to pd.CategoricalDtype instead of CategoricalDtype only.
For consistency with all the other warnings & logic as CategoricalDtype is a pandas type

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocsNeeds TriageIssue that has not been reviewed by a pandas team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions