| [ Web Proxy ] |
| Viewing: https://arrow.apache.org/docs/python/generated/../generated/pyarrow.compute.select_k_unstable.html | [Back] [Original] |
Section Navigation
Select the indices of the first k ordered elements from the input.
This function selects an array of indices of the first k ordered elements from the input array, record batch or table specified in the column keys (options.sort_keys). Output is not guaranteed to be stable. Null placement can be specified per sort key. NaNs are ordered between Nulls and regular values.
Argument to compute function.
intNumber of leading values to select in sorted order (i.e. the largest values if sort order is descending, the smallest otherwise).
name, order) tuplesNames of field/column keys to sort the input on, along with the order each field/column is sorted in. Accepted values for order are ascending, descending. The field name can be a string column name or expression.
pyarrow.compute.SelectKOptions, optionalAlternative way of passing options.
pyarrow.MemoryPool, optionalIf not passed, will allocate memory from the default memory pool.
Copyright 2016-2026 Apache Software Foundation.
Apache Arrow, Arrow, Apache, the Apache logo, and the Apache Arrow project logo are either registered trademarks or trademarks of The Apache Software Foundation in the United States and other countries.
Created using Sphinx 9.1.0.
Built with the PyData Sphinx Theme 0.20.0.
| Web Proxy Viewer | New URL | Original Page |