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

Function _sort_table

python/pyarrow/tests/test_dataset.py:4198–4202  ·  view source on GitHub ↗
(tab, sort_col)

Source from the content-addressed store, hash-verified

4196
4197
4198def _sort_table(tab, sort_col):
4199 import pyarrow.compute as pc
4200 sorted_indices = pc.sort_indices(
4201 tab, options=pc.SortOptions([(sort_col, 'ascending', 'at_end')]))
4202 return pc.take(tab, sorted_indices)
4203
4204
4205def _check_dataset_roundtrip(dataset, base_dir, expected_files, sort_col,

Callers 1

_check_dataset_roundtripFunction · 0.85

Calls 2

SortOptionsMethod · 0.80
takeMethod · 0.45

Tested by

no test coverage detected