Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 29 additions & 12 deletions docs/source/cpp/compute.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1016,6 +1016,8 @@ String transforms
+-------------------------+--------+-----------------------------------------+------------------------+-----------------------------------+-------+
| utf8_lower | Unary | String-like | String-like | | \(9) |
+-------------------------+--------+-----------------------------------------+------------------------+-----------------------------------+-------+
| utf8_normalize | Unary | String-like | String-like | :struct:`Utf8NormalizeOptions` | \(12) |
+-------------------------+--------+-----------------------------------------+------------------------+-----------------------------------+-------+
| utf8_replace_slice | Unary | String-like | String-like | :struct:`ReplaceSliceOptions` | \(7) |
+-------------------------+--------+-----------------------------------------+------------------------+-----------------------------------+-------+
| utf8_reverse | Unary | String-like | String-like | | \(11) |
Expand Down Expand Up @@ -1068,6 +1070,9 @@ String transforms
If the input is not valid UTF8, then the output is undefined (but the size of output
buffers will be preserved).

* \(12) Normalize each UTF8-encoded string to the Unicode normalization form
as specified in the required :struct:`Utf8NormalizeOptions`.

String padding
~~~~~~~~~~~~~~

Expand Down Expand Up @@ -1792,18 +1797,27 @@ Statistical functions
Associative transforms
~~~~~~~~~~~~~~~~~~~~~~

+-------------------+-------+-----------------------------------+-------------+-------+
| Function name | Arity | Input types | Output type | Notes |
+===================+=======+===================================+=============+=======+
| dictionary_encode | Unary | Boolean, Null, Numeric, | Dictionary | \(1) |
| | | Temporal, Binary- and String-like | | |
+-------------------+-------+-----------------------------------+-------------+-------+
| unique | Unary | Boolean, Null, Numeric, | Input type | \(2) |
| | | Temporal, Binary- and String-like | | |
+-------------------+-------+-----------------------------------+-------------+-------+
| value_counts | Unary | Boolean, Null, Numeric, | Input type | \(3) |
| | | Temporal, Binary- and String-like | | |
+-------------------+-------+-----------------------------------+-------------+-------+
+-------------------+-------+--------------------------------------+-----------------------+-----------------------------------+-------+
| Function name | Arity | Input types | Output type | Options class | Notes |
+===================+=======+======================================+=======================+===================================+=======+
| dictionary_encode | Unary | Boolean, Null, Numeric, | Dictionary | :struct:`DictionaryEncodeOptions` | \(1) |
| | | Temporal, Binary- and String-like | | | |
+-------------------+-------+--------------------------------------+-----------------------+-----------------------------------+-------+
| dictionary_decode | Unary | Dictionary | Dictionary value type | | \(4) |
+-------------------+-------+--------------------------------------+-----------------------+-----------------------------------+-------+
| run_end_encode | Unary | Boolean, Null, Numeric, | Run-end encoded | :struct:`RunEndEncodeOptions` | |
| | | Temporal, Binary- and String-like, | | | |
| | | FixedSizeList, List, LargeList, | | | |
| | | ListView, LargeListView, Map, Struct | | | |
+-------------------+-------+--------------------------------------+-----------------------+-----------------------------------+-------+
| run_end_decode | Unary | Run-end encoded | Encoded value type | | |
+-------------------+-------+--------------------------------------+-----------------------+-----------------------------------+-------+
| unique | Unary | Boolean, Null, Numeric, | Input type | | \(2) |
| | | Temporal, Binary- and String-like | | | |
+-------------------+-------+--------------------------------------+-----------------------+-----------------------------------+-------+
| value_counts | Unary | Boolean, Null, Numeric, | Input type | | \(3) |
| | | Temporal, Binary- and String-like | | | |
+-------------------+-------+--------------------------------------+-----------------------+-----------------------------------+-------+

* \(1) Output is ``Dictionary(Int32, input type)``. It is a no-op if input is
already a Dictionary array.
Expand All @@ -1815,6 +1829,9 @@ Associative transforms
Each output element corresponds to a unique value in the input, along
with the number of times this value has appeared.

* \(4) Dictionary-encoded arrays and chunked arrays are decoded to their
value type. Non-dictionary inputs are returned unchanged.

Selections
~~~~~~~~~~

Expand Down
2 changes: 2 additions & 0 deletions docs/source/python/api/compute.rst
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,7 @@ Sorts and Partitions
rank
rank_normal
rank_quantile
search_sorted
select_k_unstable
sort_indices
top_k_unstable
Expand Down Expand Up @@ -637,6 +638,7 @@ Compute Options
RunEndEncodeOptions
ScalarAggregateOptions
ScatterOptions
SearchSortedOptions
SelectKOptions
SetLookupOptions
SkewOptions
Expand Down