kosiew opened a new pull request, #1581: URL: https://github.com/apache/datafusion-python/pull/1581
## Which issue does this PR close? * Closes #1502. ## Rationale for this change This makes `DataFrame.aggregate` accept `None` as a more Pythonic way to express aggregation over the whole DataFrame without grouping, equivalent to passing an empty list. ## What changes are included in this PR? * Updates `DataFrame.aggregate` to allow `group_by=None`. * Treats `None` the same as an empty `group_by` list. * Updates the `aggregate` docstring examples and user guide documentation to mention `None`. ## Are these changes tested? Yes. This PR adds: ```python test_aggregate_none_group_by_equivalent_to_empty_list ``` ## Are there any user-facing changes? Yes. Users can now call: ```python df.aggregate(None, [f.count()]) ``` as an alternative to: ```python df.aggregate([], [f.count()]) ``` This is not a breaking API change. ## LLM-generated code disclosure This PR includes code, comments generated with assistance from LLM. All LLM-generated content has been manually reviewed and tested. -- 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]
