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

Skip to content

Sign in

Appearance settings

View all features

View all solutions

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Sign in

Sign up

Appearance settings

pandas-dev / pandas Public

Additional navigation options

New issue

New issue

Closed

#38030

Closed

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

#36319

#38030

Labels

API DesignBugReshapingConcat, Merge/Join, Stack/Unstack, Explode

Milestone

1.2

@jbrockmendel

Description

@jbrockmendel

jbrockmendel

opened

on Sep 13, 2020

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

API DesignBugReshapingConcat, Merge/Join, Stack/Unstack, Explode

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions