Expr.degrees
methodView source ↗
def degrees() -> Expr
Categories: numeric
Convert a radian value to degrees
Examples
>>> import tabsdata as td
>>>
>>> tf: td.TableFrame ...
>>>
>>> tf = tf.select(td.col("val"), td.col("val").degrees().alias("degrees"))
>>>
┌──────┬────────────┐
│ val ┆ degress │
│ --- ┆ --- │
│ f64 ┆ f64 │
╞══════╪════════════╡
│ 0.1 ┆ 5.729578 │
│ 1.5 ┆ 85.943669 │
│ 1.8 ┆ 103.132403 │
│ 6.0 ┆ 343.774677 │
│ 6.0 ┆ 343.774677 │
│ 7.5 ┆ 429.718346 │
│ null ┆ null │
└──────┴────────────┘