Skip to content

Commit 7d552ef

Browse files
committed
Fix typing retry
1 parent eebdafb commit 7d552ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/window/rolling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ def aggregate(self, func=None, *args, **kwargs):
654654
result = ResamplerWindowApply(self, func, args=args, kwargs=kwargs).agg()
655655
if result is not None and isinstance(result, ABCDataFrame) and relabeling:
656656
result = result.iloc[:, order]
657-
result.columns = columns
657+
result = result.set_axis(columns, axis=1)
658658
if result is None:
659659
return self.apply(func, raw=False, args=args, kwargs=kwargs)
660660
return result

0 commit comments

Comments
 (0)