Expr.sin
methodView source ↗
def sin() -> Expr
Categories: numeric
Calculate the sine of the element value.
Examples
>>> import tabsdata as td
>>>
>>> tf: td.TableFrame ...
>>>
>>> tf.select(td.col("val"), td.col("val").sin().alias("sin"))
>>>
┌─────┬───────────┐
│ val ┆ sin │
│ --- ┆ --- │
│ i64 ┆ f64 │
╞═════╪═══════════╡
│ 0 ┆ 0.0 │
│ 30 ┆ -0.988032 │
│ 60 ┆ -0.304811 │
│ 90 ┆ 0.893997 │
└─────┴───────────┘