-
Notifications
You must be signed in to change notification settings - Fork 174
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
[CHORE] Add global aggregation docs and error on improper aggregation usage #2025
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2025 +/- ##
==========================================
+ Coverage 82.71% 84.69% +1.98%
==========================================
Files 62 62
Lines 6623 6771 +148
==========================================
+ Hits 5478 5735 +257
+ Misses 1145 1036 -109
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Just one comment
daft/dataframe/dataframe.py
Outdated
Args: | ||
*cols (Union[str, Expression]): columns to get an arbitrary value from | ||
Returns: | ||
DataFrame: Globally aggregated max. Should be a single row. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haha good catch
Added API docs for global expressions.
Also, the builder now checks if there are any aggregation expressions outside of the top level of an agg call, and errors if there are. This effectively disables nested aggs for now