Skip to content

featurebyte.ViewColumn.ceil

ceil( ) -> FrozenSeriesT

Description

Rounds each element to the nearest equal or larger integer.

Returns

  • FrozenSeriesT
    Series or Feature with rounded values

Examples

Compute rounded values for a Column in a View:

>>> view = catalog.get_view("GROCERYINVOICE")
>>> view["AmountCeil"] = view["Amount"].ceil()
>>> view.preview(5).filter(regex="Amount")
   Amount  AmountCeil
0   10.68          11
1   38.04          39
2    1.99           2
3   37.21          38
4    1.20           2

Compute rounded values for a Feature:

>>> feature = catalog.get_feature("InvoiceCount_60days")
>>> feature_ceil = feature.ceil()