Skip to main content
Version: 0.9.5

Expr.cos

def cos() -> Expr

Categories: numeric

Calculate the cosine of the element value.

Examples

>>> import tabsdata as td
>>>
>>> tf: td.TableFrame ...
>>>
>>> tf = tf.select(td.col("val"), td.col("val").cos().alias("cos"))
>>>
┌──────┬───────────┐
│ val ┆ cos │
------
│ f64 ┆ f64 │
╞══════╪═══════════╡
0.10.995004
1.50.070737
1.8-0.227202
6.00.96017
6.00.96017
7.50.346635
│ null ┆ null │
└──────┴───────────┘