We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import pandas as pd a = pd.DataFrame(data=[[21] * 3, [22] * 3], columns=pd.MultiIndex.from_tuples([(1, 10), (2, 10), (3, 11)], names=['foo', 'bar'])) b = pd.DataFrame(data=[[31] * 2, [32] * 2], columns=pd.Int64Index([10, 11], name='bar')) print(a) print(b) print(b + a) # This works, but returns an incorrect result: all NaNs print(a + b) # This raises a RecursionError
755 self, other, op, axis, default_axis, fill_value, level 756 ): --> 757 return _frame_arith_method_with_reindex(self, other, op) 758 759 other = _align_method_FRAME(self, other, axis) RecursionError: maximum recursion depth exceeded while calling a Python object
In [6]: b + a Out[6]: foo 1 2 3 bar 10 10 11 0 52 52 52 1 54 54 54 In [7]: a + b Out[7]: foo 1 2 3 bar 10 10 11 0 52 52 52 1 54 54 54
pandas : 1.0.5
The text was updated successfully, but these errors were encountered:
Closed by #33765
Sorry, something went wrong.
Also see #25760
No branches or pull requests
Reproducible Example
Issue Description
Expected Behavior
Installed Versions
pandas : 1.0.5
The text was updated successfully, but these errors were encountered: