pitrou commented on a change in pull request #11164: URL: https://github.com/apache/arrow/pull/11164#discussion_r709898918
########## File path: python/pyarrow/compute.py ########## @@ -643,3 +643,85 @@ def fill_null(values, fill_value): fill_value = pa.scalar(fill_value.as_py(), type=values.type) return call_function("coalesce", [values, fill_value]) + + +def top_k_unstable(values, k, sort_keys=[], memory_pool=None): + """ + Select the indices of the top-k ordered elements from array- or table-like + data. + + This is a specalizacion for :func:`select_k_unstable`. Output is not + guaranteed to be stable. + + Parameters + ---------- + values : Array, ChunkedArray, RecordBatch, or Table + k : The number of `k` elements to keep. + sort_keys : Column key names to order by when input table-like data. Review comment: "when input is" -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org