Skip to content

Commit cf4e7d6

Browse files
committed
BUG: Too aggressive typing NDFrame.align
1 parent 0bfb8cb commit cf4e7d6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

doc/source/whatsnew/v1.0.2.rst

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Fixed regressions
1616
~~~~~~~~~~~~~~~~~
1717

1818
- Fixed regression in :meth:`DataFrame.to_excel` when ``columns`` kwarg is passed (:issue:`31677`)
19+
- Fixed regression in :meth:`Series.align` when ``other`` is a DataFrame and ``method`` is not None (:issue:`31785`)
1920
-
2021

2122
.. ---------------------------------------------------------------------------

pandas/core/generic.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -8360,9 +8360,7 @@ def _align_frame(
83608360
left = self._ensure_type(
83618361
left.fillna(method=method, axis=fill_axis, limit=limit)
83628362
)
8363-
right = self._ensure_type(
8364-
right.fillna(method=method, axis=fill_axis, limit=limit)
8365-
)
8363+
right = right.fillna(method=method, axis=fill_axis, limit=limit)
83668364

83678365
# if DatetimeIndex have different tz, convert to UTC
83688366
if is_datetime64tz_dtype(left.index):

0 commit comments

Comments
 (0)