Skip to content

Commit

Permalink
FEAT Support expanding.aggregate (modin-project#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdatre authored and vnlitvinov committed Mar 16, 2023
1 parent 27429cc commit 5a11ba9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modin/pandas/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,11 @@ def __init__(self, dataframe, min_periods=1, center=None, axis=0, method="single
]
self.axis = axis

def aggregate(self, *args, **kwargs):
return self._dataframe.__constructor__(
query_compiler=self._query_compiler.expanding_aggregate(
self.axis, self.expanding_args, *args, **kwargs)
)
def sum(self, *args, **kwargs):
return self._dataframe.__constructor__(
query_compiler=self._query_compiler.expanding_sum(
Expand Down

0 comments on commit 5a11ba9

Please sign in to comment.