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

Function _sort_table

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

Source from the content-addressed store, hash-verified

4189
4190
4191def _sort_table(tab, sort_col):
4192 import pyarrow.compute as pc
4193 sorted_indices = pc.sort_indices(
4194 tab, options=pc.SortOptions([(sort_col, 'ascending')]))
4195 return pc.take(tab, sorted_indices)
4196
4197
4198def _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