Skip to main content
Version: 1.8.0

Expr.floor

def floor() -> Expr

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.01
1.11
└──────┴─────────┘