Skip to content

Commit 707b4df

Browse files
snitishmroeschke
andauthored
Update pandas/core/window/rolling.py
Co-authored-by: Matthew Roeschke <[email protected]>
1 parent 042a4a9 commit 707b4df

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
@@ -652,7 +652,7 @@ 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 isinstance(result, ABCDataFrame) and relabeling:
656656
result = result.iloc[:, order]
657657
result.columns = columns
658658
if result is None:

0 commit comments

Comments
 (0)