Expr.Cat (CategoricalOps)
Namespace: Polars.FSharp
Instance Methods
EndsWith
Check if string representations of values end with a substring.
fsharp
member EndsWith(suffix: string) : ExprParameters
| Name | Type | Description |
|---|---|---|
suffix | string | - |
GetCategories
Get the categories stored in this data type.
fsharp
member GetCategories : unit -> ExprLenBytes
Return the byte-length of the string representation of each value.
fsharp
member LenBytes : unit -> ExprLenChars
Return the number of characters of the string representation of each value.
fsharp
member LenChars : unit -> ExprPhysical
Get the physical values of a categorical or enum data type.
fsharp
member Physical : unit -> ExprStartsWith
Check if string representations of values start with a substring.
fsharp
member StartsWith(prefix: string) : ExprParameters
| Name | Type | Description |
|---|---|---|
prefix | string | - |
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) : ExprParameters
| Name | Type | Description |
|---|---|---|
dtype | DataTypeExpr | The target categorical or enum dtype. |
strict | bool (optional) | Whether to panic when encountering an illegal category. |