Copilot commented on code in PR #51404:
URL: https://github.com/apache/arrow/pull/51404#discussion_r4142716106
##########
python/pyarrow/tests/test_dataset.py:
##########
@@ -240,7 +240,7 @@ def multisourcefs(request):
# create one with schema partitioning by weekday and color
mockfs.create_dir('schema')
- for part, chunk in df_b.groupby([df_b.date.dt.dayofweek, df_b.color]):
+ for part, chunk in df_b.groupby(df_b.date.dt.day_of_week, df_b.color]):
Review Comment:
This hunk is not syntactically valid: the closing `]` does not match the
`groupby(` call, so the entire dataset test module fails to import. Replace the
call with a list of grouping keys, e.g. `groupby([df_b.date.dt.day_of_week,
df_b.color])`, to preserve the original multi-key grouping.
--
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]