用法:
Series.floor()
将每个值向下舍入到不大于原始值的最大整数值。
- DataFrame或Series
每个元素的 floor 值。
返回:
例子:
>>> 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
相关用法
- Python cudf.Series.floordiv用法及代码示例
- Python cudf.Series.from_pandas用法及代码示例
- Python cudf.Series.fillna用法及代码示例
- Python cudf.Series.from_categorical用法及代码示例
- Python cudf.Series.from_masked_array用法及代码示例
- Python cudf.Series.factorize用法及代码示例
- Python cudf.Series.first用法及代码示例
- Python cudf.Series.from_arrow用法及代码示例
- Python cudf.Series.ceil用法及代码示例
- Python cudf.Series.update用法及代码示例
- Python cudf.Series.max用法及代码示例
- Python cudf.Series.head用法及代码示例
- Python cudf.Series.reindex用法及代码示例
- Python cudf.Series.interleave_columns用法及代码示例
- Python cudf.Series.min用法及代码示例
- Python cudf.Series.nlargest用法及代码示例
- Python cudf.Series.to_frame用法及代码示例
- Python cudf.Series.mask用法及代码示例
- Python cudf.Series.notnull用法及代码示例
- Python cudf.Series.isnull用法及代码示例
注:本文由纯净天空筛选整理自rapids.ai大神的英文原创作品 cudf.Series.floor。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。