zhengruifeng opened a new pull request, #36486:
URL: https://github.com/apache/spark/pull/36486
### What changes were proposed in this pull request?
impl GroupBy.ewm
### Why are the changes needed?
to increase the API coverage
### Does this PR introduce _any_ user-facing change?
yes, new methods added
```
In [10]: psdf
Out[10]:
s1 s2 s3 s4 s5 s6
0 NaN 1.0 1 1 NaN None
1 2.0 NaN 3 0 NaN None
2 3.0 3.0 4 3 1.0 None
3 4.0 4.0 5 4 NaN None
In [11]: psdf.groupby(psdf.s1 + 1).ewm(com=0.2, ignore_na=True).mean()
Out[11]:
s2 s3 s4 s5 s6
s1
3.0 1 NaN 3.0 0.0 NaN NaN
4.0 2 3.0 4.0 3.0 1.0 NaN
5.0 3 4.0 5.0 4.0 NaN NaN
```
### How was this patch tested?
added UT
--
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]