Expr.cot
methodView source ↗
def cot() -> TdExpr
Categories: numeric
Calculate the cotangent of the element value.
Examples
>>> import tabsdata as td
>>>
>>> tf: td.TableFrame ...
>>>
>>> tf = tf.select(td.col("val"), td.col("val").cot().alias("cot"))
>>>
┌──────┬───────────┐
│ val ┆ cot │
│ --- ┆ --- │
│ f64 ┆ f64 │
╞══════╪═══════════╡
│ 0.1 ┆ 9.966644 │
│ 1.5 ┆ 0.070915 │
│ 1.8 ┆ -0.233304 │
│ 6.0 ┆ -3.436353 │
│ 6.0 ┆ -3.436353 │
│ 7.5 ┆ 0.369547 │
│ null ┆ null │
└──────┴───────────┘