Array#

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

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.arg_max()

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

Series.arr.arg_min()

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

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.explode()

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

Series.arr.first()

Get the first value of the sub-arrays.

Series.arr.get(index, *[, null_on_oob])

Get the value by index in 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.last()

Get the last value of the sub-arrays.

Series.arr.max()

Compute the max values of the sub-arrays.

Series.arr.median()

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

Series.arr.min()

Compute the min values of the sub-arrays.

Series.arr.n_unique()

Count the number of unique values in every sub-arrays.

Series.arr.reverse()

Reverse the arrays in this column.

Series.arr.shift([n])

Shift array values by the given number of indices.

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

Sort the arrays in this column.

Series.arr.std([ddof])

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

Series.arr.sum()

Compute the sum 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.to_struct([fields])

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

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.