Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closes #1787: Implement GroupBy.std() and GroupBy.var() #1791

Merged
merged 1 commit into from
Sep 21, 2022

Conversation

stress-tess
Copy link
Member

This PR (Closes #1787):

  • Adds std and var functionality to groupby aggregation
  • Updates compare_keys in groupby_tests to account for NAN values

Note:
We default ddof=1 here to follow pandas, this differs from the default of ddof=0 in pdarrayclass which follows numpy

Copy link
Contributor

@Ethan-DeBandi99 Ethan-DeBandi99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good overall. Just one left over line that was commented out.

src/ReductionMsg.chpl Outdated Show resolved Hide resolved
Copy link
Contributor

@joshmarshall1 joshmarshall1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good. Just have one comment on the example in the docstring for var

arkouda/groupbyclass.py Outdated Show resolved Hide resolved
This PR (Closes Bears-R-Us#1787):
- Adds `std` and `var` functionality to groupby aggregation
- Updates `compare_keys` in `groupby_tests` to account for NAN values

Note:
We default `ddof=1` here to follow pandas, this differs from the default of `ddof=0` in `pdarrayclass` which follows numpy
@Ethan-DeBandi99 Ethan-DeBandi99 merged commit b90f639 into Bears-R-Us:master Sep 21, 2022
@stress-tess stress-tess deleted the 1787_groupby_std branch September 28, 2022 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GroupBy.std() and GroupBy.var()
3 participants