Skip to content

Expr.Cat (CategoricalOps) ​

Namespace: Polars.FSharp

Instance Methods ​

EndsWith ​

Check if string representations of values end with a substring.

fsharp
member EndsWith(suffix: string) : Expr

Parameters

NameTypeDescription
suffixstring-

GetCategories ​

Get the categories stored in this data type.

fsharp
member GetCategories : unit -> Expr

LenBytes ​

Return the byte-length of the string representation of each value.

fsharp
member LenBytes : unit -> Expr

LenChars ​

Return the number of characters of the string representation of each value.

fsharp
member LenChars : unit -> Expr

Physical ​

Get the physical values of a categorical or enum data type.

fsharp
member Physical : unit -> Expr

StartsWith ​

Check if string representations of values start with a substring.

fsharp
member StartsWith(prefix: string) : Expr

Parameters

NameTypeDescription
prefixstring-

To ​

Convert to a categorical or enum dtype. The input must be of the physical type of the categorical or enum dtype.

fsharp
member To(dtype: DataTypeExpr, ?strict: bool) : Expr

Parameters

NameTypeDescription
dtypeDataTypeExprThe target categorical or enum dtype.
strictbool (optional)Whether to panic when encountering an illegal category.

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