featurebyte.ViewColumn.floor¶
Description¶
Rounds each element to the nearest equal or smaller integer.
Returns¶
- FrozenSeriesT
Column or Feature with rounded values
Examples¶
Round values for a Column in a View:
>>> view = catalog.get_view("GROCERYINVOICE")
>>> column = view["Amount"].floor()
>>> view["AmountFloor"] = view["Amount"].floor()
>>> view.preview(5).filter(regex="Amount")
Amount AmountFloor
0 10.68 10
1 38.04 38
2 1.99 1
3 37.21 37
4 1.20 1
Round values for a Feature: