polars math sin for dataframe
Compute the element-wise sine of a column expression.
Signature
> polars math sin {flags}
Input/output types:
| input | output |
|---|---|
| polars_expression | polars_expression |
| polars_selector | polars_expression |
Examples
Compute the element-wise sine of a float column
> [[a]; [0.0] [1.5707963267948966]] | polars into-df | polars select (polars col a | polars math sin) | polars collect
╭───┬──────╮
│ # │ a │
├───┼──────┤
│ 0 │ 0.00 │
│ 1 │ 1.00 │
╰───┴──────╯