Array#

The following methods are available under the Series.arr attribute.

Series.arr.max()

Compute the max values of the sub-arrays.

Series.arr.min()

Compute the min values of the sub-arrays.

Series.arr.median()

Compute the median of the values of the sub-arrays.

Series.arr.sum()

Compute the sum values of the sub-arrays.

Series.arr.std([ddof])

Compute the std of the values of the sub-arrays.

Series.arr.to_list()

Convert an Array column into a List column with the same inner data type.

Series.arr.unique(*[, maintain_order])

Get the unique/distinct values in the array.

Series.arr.var([ddof])

Compute the var of the values of the sub-arrays.

Series.arr.all()

Evaluate whether all boolean values are true for every subarray.

Series.arr.any()

Evaluate whether any boolean value is true for every subarray.

Series.arr.sort(*[, descending, nulls_last])

Sort the arrays in this column.

Series.arr.reverse()

Reverse the arrays in this column.

Series.arr.arg_min()

Retrieve the index of the minimal value in every sub-array.

Series.arr.arg_max()

Retrieve the index of the maximum value in every sub-array.

Series.arr.get(index)

Get the value by index in the sub-arrays.

Series.arr.first()

Get the first value of the sub-arrays.

Series.arr.last()

Get the last value of the sub-arrays.

Series.arr.join(separator, *[, ignore_nulls])

Join all string items in a sub-array and place a separator between them.

Series.arr.explode()

Returns a column with a separate row for every array element.

Series.arr.contains(item)

Check if sub-arrays contain the given item.

Series.arr.count_matches(element)

Count how often the value produced by element occurs.

Series.arr.to_struct([fields])

Convert the series of type Array to a series of type Struct.

Series.arr.shift([n])

Shift array values by the given number of indices.