-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Open
Labels
BugExtensionArrayExtending pandas with custom dtypes or arrays.Extending pandas with custom dtypes or arrays.IndexingRelated to indexing on series/frames, not to indexes themselvesRelated to indexing on series/frames, not to indexes themselves
Description
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
Assignees
Labels
BugExtensionArrayExtending pandas with custom dtypes or arrays.Extending pandas with custom dtypes or arrays.IndexingRelated to indexing on series/frames, not to indexes themselvesRelated to indexing on series/frames, not to indexes themselves