polars uppercase
For dataframe.
Uppercase the strings in the column.
warning This command requires a plugin The
polars uppercasecommand resides in thepolarsplugin. To use this command, you must install and registernu_plugin_polars. See the Plugins chapter in the book for more information.
Command Type
plugin
Signature
> polars uppercase {flags}
Input/output types:
| input | output |
|---|---|
| polars_dataframe | polars_dataframe |
| polars_lazyframe | polars_lazyframe |
| polars_expression | polars_expression |
| polars_selector | 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 │
╰───┴─────╯
Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.