tabsdata.tableframe.expr.expr.Expr.tan#
- Expr.tan() Expr [source]#
Calculate the tangent of the element value.
Example:
>>> 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 │ └─────┴───────────┘