Skip to content

BUG: _validate_setitem_value fails to raise for PandasArray #51044

Open
@jbrockmendel

Description

@jbrockmendel
arr = pd.Series(range(5)).array

arr._validate_setitem_value("foo")  # <- fails to raise
arr._validate_setitem_value(1.5)  # <- fails to raise

AFAICT this doesn't affect anything bc we always extract PandasArray before doing anything.

Note that if this did raise on 1.5, it might cause a problem with arr.searchsorted(floats) raising when we wouldn't want it to.

Metadata

Metadata

Labels

BugExtensionArrayExtending pandas with custom dtypes or arrays.IndexingRelated to indexing on series/frames, not to indexes themselves

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions