polars math exp
For dataframe.
Compute element-wise e raised to the power of a column expression.
warning This command requires a plugin The
polars math expcommand 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 math exp {flags}
Input/output types:
| input | output |
|---|---|
| polars_expression | polars_expression |
| polars_selector | polars_expression |
Examples
Compute element-wise e raised to the power of a column
> [[a]; [0] [1] [2]] |
polars into-df |
polars select (polars col a | polars math exp) |
polars collect
Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.