TheNeuralBit commented on a change in pull request #13843:
URL: https://github.com/apache/beam/pull/13843#discussion_r603515379
##########
File path: sdks/python/apache_beam/dataframe/frames_test.py
##########
@@ -315,6 +314,40 @@ def test_dataframe_drop_ignore_errors(self):
self._run_test(
lambda df: df.drop(index='cow', columns='small', errors='ignore'), df)
+ def test_groupby_apply(self):
+ df = GROUPBY_DF
+
+ def median_sum_fn(x):
+ return (x.foo + x.bar).median()
+
+ describe = lambda df: df.describe()
Review comment:
Yeah this is the same as `DataFrame.describe`, it's just a convenient
function to test the case where the applied fn returns a Series.
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]