Skip to content

API/BUG: NumericIndex.insert(1, bool) should raise instead of cast #36319

Closed
@jbrockmendel

Description

@jbrockmendel

There are a bunch of setitem-like methods and we should try to be consistent in what we allow in them. In particular, Float64Index.putmask will reject a bool value while insert will cast it to float.

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