tabsdata.tableframe.expr.expr.Expr.floor#
- Expr.floor() Expr [source]#
Round down the expression to the previous integer value.
Example:
>>> 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 │ └──────┴─────────┘