[DISC] Index[object] ops #21315
Labels
API Design
Indexing
Related to indexing on series/frames, not to indexes themselves
Needs Discussion
Requires discussion from core team before further action
My understanding is that
Index[object]
was originally written with strings in mind, which is why ops like__sub__
and__neg__
don't make sense. Since we've got more non-string cases (e.g. #21314), what if instead these were defined something like:The string cases would still raise, but for things like Decimal and DateOffset we could get the "natural" behavior. Thoughts?
The text was updated successfully, but these errors were encountered: