HyukjinKwon commented on code in PR #36063:
URL: https://github.com/apache/spark/pull/36063#discussion_r846944967
##########
python/pyspark/pandas/generic.py:
##########
@@ -2619,6 +2619,56 @@ def expanding(self: FrameLike, min_periods: int = 1) ->
"Expanding[FrameLike]":
return Expanding(self, min_periods=min_periods)
+ # TODO: 'adjust', 'ignore_na', 'axis', 'method' parameter should be
implemented.
+ def ewm(
+ self: FrameLike,
+ com: Optional[float] = None,
+ span: Optional[float] = None,
+ halflife: Optional[float] = None,
+ alpha: Optional[float] = None,
+ min_periods: Optional[int] = None,
+ ) -> "ExponentialMoving[FrameLike]":
+ """
+ Provide exponentially weighted window transformations.
+
+ .. note:: 'min_periods' in pandas-on-Spark works as a fixed window
size unlike pandas.
Review Comment:
I think it's fine for now.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]