MCPcopy Create free account
hub / github.com/apache/arrow / _group_by

Function _group_by

python/pyarrow/acero.py:413–419  ·  view source on GitHub ↗
(table, aggregates, keys, use_threads=True)

Source from the content-addressed store, hash-verified

411
412
413def _group_by(table, aggregates, keys, use_threads=True):
414
415 decl = Declaration.from_sequence([
416 Declaration("table_source", TableSourceNodeOptions(table)),
417 Declaration("aggregate", AggregateNodeOptions(aggregates, keys=keys))
418 ])
419 return decl.to_table(use_threads=use_threads)

Callers

nothing calls this directly

Calls 4

TableSourceNodeOptionsFunction · 0.85
DeclarationClass · 0.50
to_tableMethod · 0.45

Tested by

no test coverage detected