Skip to main content
Version: 0.9.2

Expr.cot

def cot() -> Expr

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.19.966644
1.50.070915
1.8-0.233304
6.0-3.436353
6.0-3.436353
7.50.369547
│ null ┆ null │
└──────┴───────────┘