Skip to content

Commit 042a4a9

Browse files
committed
Fix typing retry 2
1 parent 7d552ef commit 042a4a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/window/rolling.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -652,9 +652,9 @@ def _numba_apply(
652652
def aggregate(self, func=None, *args, **kwargs):
653653
relabeling, func, columns, order = reconstruct_func(func, **kwargs)
654654
result = ResamplerWindowApply(self, func, args=args, kwargs=kwargs).agg()
655-
if result is not None and isinstance(result, ABCDataFrame) and relabeling:
655+
if (result is not None) and isinstance(result, ABCDataFrame) and relabeling:
656656
result = result.iloc[:, order]
657-
result = result.set_axis(columns, axis=1)
657+
result.columns = columns
658658
if result is None:
659659
return self.apply(func, raw=False, args=args, kwargs=kwargs)
660660
return result

0 commit comments

Comments
 (0)