Expr.radians
methodView source ↗
def radians() -> TdExpr
Categories: numeric
Convert a degree value to radians
Examples
>>> import tabsdata as td
>>>
>>> tf: td.TableFrame ...
>>>
>>> tf = tf.select(td.col("val"), td.col("val").radians().alias("radians"))
>>>
┌─────────┬──────────┐
│ val ┆ radians │
│ --- ┆ --- │
│ i64 ┆ f64 │
╞═════════╪══════════╡
│ 1 ┆ 0.017453 │
│ 15 ┆ 0.261799 │
│ 60 ┆ 1.047198 │
│ 75 ┆ 1.308997 │
│ null ┆ null │
└─────────┴──────────┘