cudf.Series.floor#

Series.floor()#

Rounds each value downward to the largest integral value not greater than the original.

Returns
DataFrame or Series

Flooring value of each element.

Examples

>>> import cudf
>>> series = cudf.Series([-1.9, 2, 0.2, 1.5, 0.0, 3.0])
>>> series
0   -1.9
1    2.0
2    0.2
3    1.5
4    0.0
5    3.0
dtype: float64
>>> series.floor()
0   -2.0
1    2.0
2    0.0
3    1.0
4    0.0
5    3.0
dtype: float64