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

Function _sort_table

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

Source from the content-addressed store, hash-verified

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