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