Compute Functions¶
Aggregations¶
|
Count the number of null / non-null values. |
|
Compute the mean of a numeric array. |
|
Compute the minimum and maximum values of a numeric array. |
|
Return top-n most common values and number of times they occur in a passed numerical (chunked) array, in descending order of occurance. |
|
Calculate the standard deviation of a numeric array. |
|
Sum the values in a numerical (chunked) array. |
|
Calculate the variance of a numeric array. |
Arithmetic Functions¶
By default these functions do not detect overflow. Each function is also
available in an overflow-checking variant, suffixed _checked
, which
throws an ArrowInvalid
exception when overflow is detected.
|
Add the arguments element-wise. |
|
Add the arguments element-wise. |
|
Divide the arguments element-wise. |
|
Divide the arguments element-wise. |
|
Multiply the arguments element-wise. |
|
Multiply the arguments element-wise. |
|
Substract the arguments element-wise. |
|
Substract the arguments element-wise. |
Comparisons¶
These functions expect two inputs of the same type. If one of the inputs is null
they return null
.
|
Compare values for equality (x == y). |
|
Compare values for ordered inequality (x > y). |
|
Compare values for ordered inequality (x >= y). |
|
Compare values for ordered inequality (x < y). |
|
Compare values for ordered inequality (x <= y). |
|
Compare values for inequality (x != y). |
Logical Functions¶
These functions normally emit a null when one of the inputs is null. However, Kleene
logic variants are provided (suffixed _kleene
). See User Guide for details.
|
Logical ‘and’ boolean values. |
|
Logical ‘and’ boolean values (Kleene logic). |
|
Test whether all elements in a boolean array evaluate to true.. |
|
Test whether any element in a boolean array evaluates to true.. |
|
Invert boolean values. |
|
Logical ‘or’ boolean values. |
|
Logical ‘or’ boolean values (Kleene logic). |
|
Logical ‘xor’ boolean values. |
String Predicates¶
In these functions an empty string emits false in the output. For ASCII
variants (prefixed ascii_
) a string element with non-ASCII characters
emits false in the output.
The first set of functions emit true if the input contains only characters of a given class.
|
Classify strings as ASCII alphanumeric. |
|
Classify strings as ASCII alphabetic. |
|
Classify strings as ASCII decimal. |
|
Classify strings as ASCII lowercase. |
|
Classify strings as ASCII printable. |
|
Classify strings as ASCII whitespace. |
|
Classify strings as ASCII uppercase. |
|
Classify strings as alphanumeric. |
|
Classify strings as alphabetic. |
|
Classify strings as decimal. |
|
Classify strings as digits. |
|
Classify strings as lowercase. |
|
Classify strings as numeric. |
|
Classify strings as printable. |
|
Classify strings as whitespace. |
|
Classify strings as uppercase. |
The second set of functions also consider the order of characters in the string element.
|
Classify strings as ASCII titlecase. |
|
Classify strings as titlecase. |
The third set of functions examines string elements on a byte-by-byte basis.
|
Classify strings as ASCII. |
String Transforms¶
|
Transform ASCII input to lowercase. |
|
Transform ASCII input to uppercase. |
|
Transform input to lowercase. |
|
Transform input to uppercase. |
Containment tests¶
|
Return index of each element in a set of values. |
|
Find each element in a set of values. |
|
Test if substring pattern is contained within a value of a string array. |
Conversions¶
|
Cast array values to another data type. |
|
Parse timestamps. |
Selections¶
|
Select values (or records) from array- or table-like data given boolean filter, where true values are selected. |
|
Select values (or records) from array- or table-like data given integer selection indices. |
Associative transforms¶
|
Dictionary-encode array. |
|
Compute unique elements. |
|
Compute counts of unique elements. |
Sorts and partitions¶
|
Return the indices that would partition an array around a pivot. |
|
Return the indices that would sort an array, record batch or table. |
Structural Transforms¶
|
Compute string lengths. |
|
Replace each null element in values with fill_value. |
|
Return true if null. |
|
Return true if non-null. |
|
Compute list lengths. |
|
Flatten list values. |
|
Compute parent indices of nested list values. |