Skip to content

Conversation

@natmokval
Copy link
Contributor

@natmokval natmokval commented Dec 13, 2025

xref #25891

@natmokval natmokval marked this pull request as draft December 13, 2025 14:00
@natmokval natmokval added Numeric Operations Arithmetic, Comparison, and Logical operations MultiIndex Deprecate Functionality to remove in pandas labels Dec 13, 2025
@natmokval natmokval marked this pull request as ready for review December 13, 2025 15:20
@natmokval
Copy link
Contributor Author

@jbrockmendel, could you please take a look at this PR?

I have deprecated the silent alignment on arithmetic operations between Series with non-aligned MultiIndexes and advise aligning MultiIndexes. I am unsure though, maybe in these case the operations should all return a Series of NaNs.

If it is okay to completely deprecate this silent alignment, I can do similar to the operations like addition, multiplication, and so on for Series. So far, series1 + series2 will raise a warning if the MultiIndexes are non-aligned, and series1.add(series2) will not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Deprecate Functionality to remove in pandas MultiIndex Numeric Operations Arithmetic, Comparison, and Logical operations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant