felipecrv commented on code in PR #15083:
URL: https://github.com/apache/arrow/pull/15083#discussion_r1064891552
##########
python/pyarrow/table.pxi:
##########
@@ -5364,30 +5364,31 @@ list[tuple(str, str, FunctionOptions)]
----
keys: [["a","b","c"]]
"""
- columns = [a[0] for a in aggregations]
+ target_cols = [a[0] if isinstance(a[0], (list, tuple)) else [a[0]] for
a in aggregations]
Review Comment:
I will update the example and Python help is very welcome! I tried to copy
patterns I saw elsewhere in this codebase because I can't claim I'm able to
write pythonic Python :)
--
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]