Skip to content

DOC: Series.name is just Hashable, but many column arguments require str #61432

Open
@cmp0xff

Description

@cmp0xff

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

Documentation problem

In the documentation, Series.name is just required to be a Hashable. When pandas functions ask for a column label, however, it often asks for an str, e.g. in DataFrame.pivot, where it says

columns: str or object or a list of str

Suggested fix for documentation

Use Hashable everywhere to column labels as a function argument

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