ayudovin opened a new pull request, #37923:
URL: https://github.com/apache/spark/pull/37923
### What changes were proposed in this pull request?
Implement `GroupBy.prod`
### Why are the changes needed?
for API coverage
### Does this PR introduce _any_ user-facing change?
yes, the new API
```
df = ps.DataFrame({'A': [1, 1, 2, 1, 2],
'B': [np.nan, 2, 3, 4, 5],
'C': [1, 2, 1, 1, 2],
'D': [True, False, True, False, True]})
Groupby one column and return the prod of the remaining columns in
each group.
df.groupby('A').prod()
B C D
A
1 8.0 2 0
2 15.0 2 11
df.groupby('A').prod(min_count=3)
B C D
A
1 NaN 2 0
2 NaN 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]