Skip to content

BUG/API: allowing scalars in Categorical constructor #38433

Closed
@jbrockmendel

Description

@jbrockmendel

I expected this to raise

>> pd.Categorical("A")
['A']
Categories (1, object): ['A']

This gets listified inside the call to maybe_infer_to_datetimelike in Categorical.__init__

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions