[
https://issues.apache.org/jira/browse/BEAM-12138?focusedWorklogId=581926&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-581926
]
ASF GitHub Bot logged work on BEAM-12138:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 13/Apr/21 17:38
Start Date: 13/Apr/21 17:38
Worklog Time Spent: 10m
Work Description: rohdesamuel commented on a change in pull request
#14487:
URL: https://github.com/apache/beam/pull/14487#discussion_r612650609
##########
File path: sdks/python/apache_beam/dataframe/frames_test.py
##########
@@ -640,6 +646,26 @@ def change_index_names(df):
self._run_test(change_index_names, df)
+ @parameterized.expand((x, ) for x in [
+ 0,
+ [1],
+ 3,
+ [0, 3],
+ [2, 1],
+ ['foo', 0],
+ [1, 'str'],
+ [3, 0, 2, 1],
+ ])
+ def test_groupby_level_agg(self, level):
Review comment:
Can you also add a test for doing a groupby on a specific level with a
hierarchical index please? See
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.groupby.html
for an example.
--
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]
Issue Time Tracking
-------------------
Worklog Id: (was: 581926)
Time Spent: 1h 10m (was: 1h)
> DataFrame API: groupby(level=) only works for level=0
> -----------------------------------------------------
>
> Key: BEAM-12138
> URL: https://issues.apache.org/jira/browse/BEAM-12138
> Project: Beam
> Issue Type: Bug
> Components: sdk-py-core
> Reporter: Brian Hulette
> Assignee: Brian Hulette
> Priority: P2
> Labels: dataframe-api
> Time Spent: 1h 10m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)