Binary operations on Series + DataFrame doesn't work #4578
Labels
bug 🦗
Something isn't working
P2
Minor bugs or low-priority feature requests
pandas concordance 🐼
Functionality that does not match pandas
System information
modin.__version__
): 4ec7f63Output
Describe the problem
The code fails on the column widths check when constructing the binary operation result.
The problem is that the
binary_op
is designed fordf + df
operations only. The handling of mixin a frame and a series has to be done via broadcasting a series to every column of the frame instead of attempting to align the shapes of two operands. We already have the broadcasting logic insideBinary
operator, the logic is triggered whenbroadcast
parameter is True (happens in cases ofdf + series
), however, the parameter appears to be False whenseries + df
.The text was updated successfully, but these errors were encountered: