Skip to content

API: bool dtype casts to object arrays with np.array #3966

Closed
@jseabold

Description

@jseabold

Bug? Did this used to work?

np.array(pandas.DataFrame.from_dict(dict(a=np.random.rand(50), b=np.random.randint(2, size=50).astype(bool))))

We would expect that this casts to a plain float ndarray.

See statsmodels/statsmodels#880

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