Skip to content

BUG: lib.infer_dtype croaking on Categoricals #8974

Closed
@jreback

Description

@jreback
In [13]: df = pd.DataFrame({'a':pd.Series(['A','B'], dtype='category')})
In [15]: lib.infer_dtype(df['a'])
TypeError: Cannot convert Categorical to numpy.ndarray

Metadata

Metadata

Assignees

No one assigned

    Labels

    InternalsRelated to non-user accessible pandas implementation

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions