Skip to content

DataFrame.insert should accept np.float32 #1059

Open
@tblum

Description

Describe the bug
Calling DataFrame.insert with a np.float32 will fail with the following error:

error: Argument 3 to "insert" of "DataFrame" has incompatible type "floating[_32Bit]"; expected "str | bytes | date | datetime | timedelta | <7 more items> | complex | Sequence[Any] | ndarray[Any, Any] | Series[Any] | Index[Any] | None" [arg-type]

Metadata

Assignees

No one assigned

    Labels

    DataFrameDataFrame data structure

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions