BUG(string dtype): Arithmetic operations between Series with string dtype index #61425
Labels
API - Consistency
Internal Consistency of API/Behavior
Bug
Needs Discussion
Requires discussion from core team before further action
Strings
String extension data type and string data
Similar to #61099, but concerning
lhs + rhs
. Alignment in general is heavily involved here as well. One thing to note is that unlike in comparisons operations, in arithmetic operations thelhs.index
dtype is favored, assuming no coercion is necessary.When concerning string dtypes, I've observed the following:
lhs
lhs
andrhs
have indices that are both object dtype:lhs
value.I think the main two things we need to decide are:
A few properties I think are crucial:
If we do decide on aligning between different values, a natural order is
None < NaN < NA
. However, the most backwards compatible would be to have None vs NaN be operand dependent with NA always propagating when present.The text was updated successfully, but these errors were encountered: