Skip to content

Series.List (SeriesListNameSpace) ​

Namespace: Polars.FSharp

Instance Methods ​

Agg ​

Aggregate elements in list.

fsharp
member Agg(expr: Expr) : Series

Parameters

NameTypeDescription
exprExpr-

All ​

Check if all elements in list are true.

fsharp
member All(?ignoreNulls: bool) : Series

Parameters

NameTypeDescription
ignoreNullsbool (optional)-

Any ​

Check if any element in list is true.

fsharp
member Any(?ignoreNulls: bool) : Series

Parameters

NameTypeDescription
ignoreNullsbool (optional)-

ArgMax ​

Get the index of the maximum element in list.

fsharp
member ArgMax : unit -> Series

ArgMin ​

Get the index of the minimum element in list.

fsharp
member ArgMin : unit -> Series

Concat ​

Concat with another Series. Logic: [this_val, other_val]

fsharp
member Concat(other: Series) : Series

Parameters

NameTypeDescription
otherSeries-

Contains ​

Check if list contains item.

fsharp
member Contains(item: Expr) : Series
member Contains(item: int) : Series
member Contains(item: string) : Series

Parameters

NameTypeDescription
itemExpr / int / string-

Diff ​

Diff elements in list.

fsharp
member Diff(?n: int64, ?nullBehavior: NullBehavior) : Series

Parameters

NameTypeDescription
nint64 (optional)-
nullBehaviorNullBehavior (optional)-

DropNulls ​

Drop nulls from list.

fsharp
member DropNulls : unit -> Series

Eval ​

Evaluate an expression on the list.

fsharp
member Eval(expr: Expr) : Series

Parameters

NameTypeDescription
exprExpr-

Explode ​

Explode list.

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

Parameters

NameTypeDescription
emptyAsNullbool (optional)-
keepNullsbool (optional)-

First ​

Get the first element of the list.

fsharp
member First : unit -> Series

Gather ​

Gather elements by indices.

fsharp
member Gather(indices: Expr, ?nullOnOob: bool) : Series

Parameters

NameTypeDescription
indicesExpr-
nullOnOobbool (optional)-

GatherEvery ​

Gather every n-th element.

fsharp
member GatherEvery(n: Expr, ?offset: Expr) : Series

Parameters

NameTypeDescription
nExpr-
offsetExpr (optional)-

Get ​

Get the element at the given index.

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

Parameters

NameTypeDescription
indexint-
nullOnOobbool (optional)-

Get the first n elements of the list.

fsharp
member Head(?n: Expr) : Series

Parameters

NameTypeDescription
nExpr (optional)-

Join ​

Join list elements with separator.

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

Parameters

NameTypeDescription
sepstring-
ignoreNullsbool (optional)-

Last ​

Get the last element of the list.

fsharp
member Last : unit -> Series

Len ​

Get the length of the list.

fsharp
member Len : unit -> Series

Max ​

Get the maximum of the list.

fsharp
member Max : unit -> Series

Mean ​

Get the mean of the list.

fsharp
member Mean : unit -> Series

Median ​

Get the median of the list.

fsharp
member Median : unit -> Series

Min ​

Get the minimum of the list.

fsharp
member Min : unit -> Series

NUnique ​

Get the number of unique elements in list.

fsharp
member NUnique : unit -> Series

Reverse ​

Reverse the list.

fsharp
member Reverse : unit -> Series

SampleFrac ​

Sample fraction of elements from list.

fsharp
member SampleFrac(
    fraction: Expr,
    ?withReplacement: bool,
    ?shuffle: bool,
    ?seed: uint64
) : Series

Parameters

NameTypeDescription
fractionExpr-
withReplacementbool (optional)-
shufflebool (optional)-
seeduint64 (optional)-

SampleN ​

Sample n elements from list.

fsharp
member SampleN(
    ?n: Expr,
    ?withReplacement: bool,
    ?shuffle: bool,
    ?seed: uint64
) : Series

Parameters

NameTypeDescription
nExpr (optional)-
withReplacementbool (optional)-
shufflebool (optional)-
seeduint64 (optional)-

SetDifference ​

Set difference of lists.

fsharp
member SetDifference(other: Expr) : Series

Parameters

NameTypeDescription
otherExpr-

SetIntersection ​

Set intersection of lists.

fsharp
member SetIntersection(other: Expr) : Series

Parameters

NameTypeDescription
otherExpr-

SetSymmetricDifference ​

Set symmetric difference of lists.

fsharp
member SetSymmetricDifference(other: Expr) : Series

Parameters

NameTypeDescription
otherExpr-

SetUnion ​

Set union of lists.

fsharp
member SetUnion(other: Expr) : Series

Parameters

NameTypeDescription
otherExpr-

Shift ​

Shift elements in list.

fsharp
member Shift(?n: Expr) : Series

Parameters

NameTypeDescription
nExpr (optional)-

Slice ​

Slice the list.

fsharp
member Slice(offset: Expr, ?length: Expr) : Series

Parameters

NameTypeDescription
offsetExpr-
lengthExpr (optional)-

Sort ​

Sort the list.

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

Parameters

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

Std ​

Get the standard deviation of the list.

fsharp
member Std(?ddof: byte) : Series

Parameters

NameTypeDescription
ddofbyte (optional)-

Sum ​

Get the sum of the list.

fsharp
member Sum : unit -> Series

Tail ​

Get the last n elements of the list.

fsharp
member Tail(?n: Expr) : Series

Parameters

NameTypeDescription
nExpr (optional)-

ToArray ​

Convert list to array.

fsharp
member ToArray(width: int64) : Series

Parameters

NameTypeDescription
widthint64-

ToStruct ​

Convert list to struct.

fsharp
member ToStruct(fields: seq<string>) : Series
member ToStruct(nameGenerator: (int -> string), fieldCount: int) : Series
member ToStruct(upperBound: int) : Series

Parameters

NameTypeDescription
fieldsseq<string>-
nameGenerator(int -> string)-
fieldCountint-
upperBoundint-

Unique ​

Get the unique elements of the list.

fsharp
member Unique(?maintainOrder: bool) : Series

Parameters

NameTypeDescription
maintainOrderbool (optional)-

Var ​

Get the variance of the list.

fsharp
member Var(?ddof: byte) : Series

Parameters

NameTypeDescription
ddofbyte (optional)-

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