Skip to content

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)) : Expr

Parameters

NameTypeDescription
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)) : Expr

Parameters

NameTypeDescription
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) : Expr

Parameters

NameTypeDescription
prefixstring-

PrefixFields ​

Add a prefix to all field names of a struct.

fsharp
member PrefixFields(prefix: string) : Expr

Parameters

NameTypeDescription
prefixstringPrefix 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) : Expr

Parameters

NameTypeDescription
patternstringA valid regular expression pattern, compatible with the regex crate.
valuestringString that will replace the matched substring.
literalbool (optional)Treat pattern as a literal string, not a regex.

Suffix ​

Suffix the column name with a specified string.

fsharp
member Suffix(suffix: string) : Expr

Parameters

NameTypeDescription
suffixstring-

SuffixFields ​

Add a suffix to all field names of a struct.

fsharp
member SuffixFields(suffix: string) : Expr

Parameters

NameTypeDescription
suffixstringSuffix to add to the field name.

ToLowercase ​

Make the root column name lowercase.

fsharp
member ToLowercase : unit -> Expr

ToUppercase ​

Make the root column name uppercase.

fsharp
member ToUppercase : unit -> Expr

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