Expr.Name (NameOps)
Namespace: Polars.FSharp
Instance Methods
Map
Rename the output of an expression by mapping a function over the root name.
fsharp
member Map(func: (string -> string)) : ExprParameters
| Name | Type | Description |
|---|---|---|
func | (string -> string) | Function that maps a root name to a new name. |
MapFields
Rename fields of a struct by mapping a function over the field name(s).
fsharp
member MapFields(func: (string -> string)) : ExprParameters
| Name | Type | Description |
|---|---|---|
func | (string -> string) | Function that maps a field name to a new name. |
Prefix
Prefix the column name with a specified string.
fsharp
member Prefix(prefix: string) : ExprParameters
| Name | Type | Description |
|---|---|---|
prefix | string | - |
PrefixFields
Add a prefix to all field names of a struct.
fsharp
member PrefixFields(prefix: string) : ExprParameters
| Name | Type | Description |
|---|---|---|
prefix | string | Prefix to add to the field name. |
Replace
Replace matching regex/literal substring in the name with a new value.
fsharp
member Replace(pattern: string, value: string, ?literal: bool) : ExprParameters
| Name | Type | Description |
|---|---|---|
pattern | string | A valid regular expression pattern, compatible with the regex crate. |
value | string | String that will replace the matched substring. |
literal | bool (optional) | Treat pattern as a literal string, not a regex. |
Suffix
Suffix the column name with a specified string.
fsharp
member Suffix(suffix: string) : ExprParameters
| Name | Type | Description |
|---|---|---|
suffix | string | - |
SuffixFields
Add a suffix to all field names of a struct.
fsharp
member SuffixFields(suffix: string) : ExprParameters
| Name | Type | Description |
|---|---|---|
suffix | string | Suffix to add to the field name. |
ToLowercase
Make the root column name lowercase.
fsharp
member ToLowercase : unit -> ExprToUppercase
Make the root column name uppercase.
fsharp
member ToUppercase : unit -> Expr