Expr.floor
methodView source ↗
def floor() -> TdExpr
Categories: numeric
Round down the expression to the previous integer value.
Examples
>>> import tabsdata as td
>>>
>>> tf: td.TableFrame ...
>>>
>>> tf = tf.select(td.col("temp"), td.col("temp").ceil().alias("floor"))
>>>
┌──────┬─────────┐
│ temp ┆ floor │
│ --- ┆ ------- │
│ f64 ┆ i64 │
╞══════╪═════════╡
│ 1.0 ┆ 1 │
│ 1.1 ┆ 1 │
└──────┴─────────┘