Skip to content

Series.Array (SeriesArrayNameSpace) ​

Namespace: Polars.FSharp

Namespace containing array operations for a Series.

Instance Methods ​

Agg ​

Run any Polars aggregation expression on each array element.

fsharp
member Agg(expr: Expr) : Series

Parameters

NameTypeDescription
exprExpr-

All ​

Evaluate whether all boolean values are true for each array element.

fsharp
member All(?ignoreNulls: bool) : Series

Parameters

NameTypeDescription
ignoreNullsbool (optional)-

Any ​

Evaluate whether any boolean value is true for each array element.

fsharp
member Any(?ignoreNulls: bool) : Series

Parameters

NameTypeDescription
ignoreNullsbool (optional)-

ArgMax ​

Retrieve the index of the maximum value in each array element.

fsharp
member ArgMax : unit -> Series

ArgMin ​

Retrieve the index of the minimum value in each array element.

fsharp
member ArgMin : unit -> Series

Contains ​

Check if array contains an Item (Expr).

Check if array contains a literal string.

Check if array contains a literal int.

fsharp
member Contains(item: Expr, ?nullsEqual: bool) : Series
member Contains(item: string, ?nullsEqual: bool) : Series
member Contains(item: int, ?nullsEqual: bool) : Series

Parameters

NameTypeDescription
itemExpr / string / int-
nullsEqualbool (optional)-

CountMatches ​

Count how often the given expression matches in each array element.

fsharp
member CountMatches(expr: Expr) : Series

Parameters

NameTypeDescription
exprExpr-

Eval ​

Run any Polars expression on each array element.

fsharp
member Eval(expr: Expr, ?asList: bool) : Series

Parameters

NameTypeDescription
exprExpr-
asListbool (optional)-

Explode ​

Explode the array into multiple rows.

fsharp
member Explode(?emptyAsNull: bool, ?keepNulls: bool) : Series

Parameters

NameTypeDescription
emptyAsNullbool (optional)-
keepNullsbool (optional)-

First ​

Get the first element of each array.

fsharp
member First : unit -> Series

Get ​

Get the element at the given index from each array.

fsharp
member Get(index: int, ?nullOnOob: bool) : Series

Parameters

NameTypeDescription
indexint-
nullOnOobbool (optional)-

Join ​

Join all string items in the array into a single string using a delimiter.

fsharp
member Join(separator: string, ?ignoreNulls: bool) : Series

Parameters

NameTypeDescription
separatorstring-
ignoreNullsbool (optional)-

Last ​

Get the last element of each array.

fsharp
member Last : unit -> Series

Len ​

Compute the length (number of elements) of each array element.

fsharp
member Len : unit -> Series

Max ​

Compute the maximum value in each array element.

fsharp
member Max : unit -> Series

Mean ​

Compute the mean of values in each array element.

fsharp
member Mean : unit -> Series

Median ​

Compute the median of values in each array element.

fsharp
member Median : unit -> Series

Min ​

Compute the minimum value in each array element.

fsharp
member Min : unit -> Series

NUnique ​

Count the number of unique values in each array element.

fsharp
member NUnique : unit -> Series

Reverse ​

Reverse the elements of each array.

fsharp
member Reverse : unit -> Series

Sort ​

Sort the elements of each array.

fsharp
member Sort(?descending: bool, ?nullsLast: bool, ?maintainOrder: bool) : Series

Parameters

NameTypeDescription
descendingbool (optional)-
nullsLastbool (optional)-
maintainOrderbool (optional)-

Std ​

Compute the standard deviation of each array element.

fsharp
member Std(?ddof: int) : Series

Parameters

NameTypeDescription
ddofint (optional)-

Sum ​

Compute the sum of values in each array element.

fsharp
member Sum : unit -> Series

ToList ​

Convert to variable length List.

fsharp
member ToList : unit -> Series

ToStruct ​

Convert to Struct.

fsharp
member ToStruct : unit -> Series

Unique ​

Get unique values from each array element.

fsharp
member Unique(?maintainOrder: bool) : Series

Parameters

NameTypeDescription
maintainOrderbool (optional)-

Var ​

Compute the variance of each array element.

fsharp
member Var(?ddof: int) : Series

Parameters

NameTypeDescription
ddofint (optional)-

Released under the MIT License. Powered by the Polars Rust core & Apache Arrow.