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