Skip to content

Commit 87ecfc4

Browse files
committed
Removed restriction on using fill_value with series
Updated docs
1 parent a60fbb0 commit 87ecfc4

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

doc/source/whatsnew/v3.0.0.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,7 @@ MultiIndex
778778
- :func:`MultiIndex.get_level_values` accessing a :class:`DatetimeIndex` does not carry the frequency attribute along (:issue:`58327`, :issue:`57949`)
779779
- Bug in :class:`DataFrame` arithmetic operations in case of unaligned MultiIndex columns (:issue:`60498`)
780780
- Bug in :class:`DataFrame` arithmetic operations with :class:`Series` in case of unaligned MultiIndex (:issue:`61009`)
781+
- Bug in :class:`DataFrame` arithmetic operations with :class:`Series` now works with ``fill_value`` parameter (:issue:`61581`)
781782
- Bug in :meth:`MultiIndex.from_tuples` causing wrong output with input of type tuples having NaN values (:issue:`60695`, :issue:`60988`)
782783

783784
I/O

pandas/core/frame.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8382,11 +8382,6 @@ def _flex_arith_method(
83828382
if self._should_reindex_frame_op(other, op, axis, fill_value, level):
83838383
return self._arith_method_with_reindex(other, op)
83848384

8385-
if isinstance(other, Series) and fill_value is not None:
8386-
# TODO: We could allow this in cases where we end up going
8387-
# through the DataFrame path
8388-
raise NotImplementedError(f"fill_value {fill_value} not supported.")
8389-
83908385
other = ops.maybe_prepare_scalar_for_op(other, self.shape)
83918386
self, other = self._align_for_op(other, axis, flex=True, level=level)
83928387

0 commit comments

Comments
 (0)