Skip to content

Commit c7fc3a0

Browse files
committed
reverted function definition
1 parent f463546 commit c7fc3a0

File tree

1 file changed

+3
-19
lines changed

1 file changed

+3
-19
lines changed

pandas/core/groupby/groupby.py

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3826,17 +3826,7 @@ def expanding(self, *args, **kwargs) -> ExpandingGroupby:
38263826
@final
38273827
@Substitution(name="groupby")
38283828
@Appender(_common_see_also)
3829-
def ewm(
3830-
self,
3831-
com: float | None = None,
3832-
span: float | None = None,
3833-
halflife: float | None = None,
3834-
alpha: float | None = None,
3835-
min_periods: int = 0,
3836-
adjust: bool = True,
3837-
ignore_na: bool = False,
3838-
axis: int = 0,
3839-
) -> ExponentialMovingWindowGroupby:
3829+
def ewm(self, *args, **kwargs) -> ExponentialMovingWindowGroupby:
38403830
"""
38413831
Return an exponential weighted moving average grouper,
38423832
providing ewm functionality per group.
@@ -3976,15 +3966,9 @@ def ewm(
39763966

39773967
return ExponentialMovingWindowGroupby(
39783968
self._selected_obj,
3979-
com=com,
3980-
span=span,
3981-
halflife=halflife,
3982-
alpha=alpha,
3983-
min_periods=min_periods,
3984-
adjust=adjust,
3985-
ignore_na=ignore_na,
3986-
axis=axis,
3969+
*args,
39873970
_grouper=self._grouper,
3971+
**kwargs,
39883972
)
39893973

39903974
@final

0 commit comments

Comments
 (0)