Skip to content

Commit

Permalink
Fix typing retry 2
Browse files Browse the repository at this point in the history
  • Loading branch information
snitish committed Dec 12, 2024
1 parent 7d552ef commit 042a4a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/core/window/rolling.py
Original file line number Diff line number Diff line change
Expand Up @@ -652,9 +652,9 @@ def _numba_apply(
def aggregate(self, func=None, *args, **kwargs):
relabeling, func, columns, order = reconstruct_func(func, **kwargs)
result = ResamplerWindowApply(self, func, args=args, kwargs=kwargs).agg()
if result is not None and isinstance(result, ABCDataFrame) and relabeling:
if (result is not None) and isinstance(result, ABCDataFrame) and relabeling:
result = result.iloc[:, order]
result = result.set_axis(columns, axis=1)
result.columns = columns
if result is None:
return self.apply(func, raw=False, args=args, kwargs=kwargs)
return result
Expand Down

0 comments on commit 042a4a9

Please sign in to comment.