polars uppercase for dataframe
Uppercase the strings in the column.
Signature
> polars uppercase {flags}
Input/output types:
| input | output |
|---|---|
| polars_dataframe | polars_dataframe |
| polars_lazyframe | polars_lazyframe |
| polars_expression | polars_expression |
Examples
Modifies strings in a column to uppercase
> [[a]; [Abc]] | polars into-df | polars select (polars col a | polars uppercase) | polars collect ╭───┬─────╮ │ # │ a │ ├───┼─────┤ │ 0 │ ABC │ ╰───┴─────╯
Modifies strings to uppercase
> [Abc aBc abC] | polars into-df | polars uppercase ╭───┬─────╮ │ # │ 0 │ ├───┼─────┤ │ 0 │ ABC │ │ 1 │ ABC │ │ 2 │ ABC │ ╰───┴─────╯
Copyright © 2019–2026 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/polars_uppercase.html