用法:
DataFrame.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.DataFrame.floordiv用法及代碼示例
- Python cudf.DataFrame.first用法及代碼示例
- Python cudf.DataFrame.from_pandas用法及代碼示例
- Python cudf.DataFrame.fillna用法及代碼示例
- Python cudf.DataFrame.from_arrow用法及代碼示例
- Python cudf.DataFrame.mod用法及代碼示例
- Python cudf.DataFrame.isin用法及代碼示例
- Python cudf.DataFrame.rmul用法及代碼示例
- Python cudf.DataFrame.apply用法及代碼示例
- Python cudf.DataFrame.exp用法及代碼示例
- Python cudf.DataFrame.drop用法及代碼示例
- Python cudf.DataFrame.where用法及代碼示例
- Python cudf.DataFrame.median用法及代碼示例
- Python cudf.DataFrame.to_pandas用法及代碼示例
- Python cudf.DataFrame.take用法及代碼示例
- Python cudf.DataFrame.tail用法及代碼示例
- Python cudf.DataFrame.rfloordiv用法及代碼示例
- Python cudf.DataFrame.equals用法及代碼示例
- Python cudf.DataFrame.head用法及代碼示例
- Python cudf.DataFrame.count用法及代碼示例
注:本文由純淨天空篩選整理自rapids.ai大神的英文原創作品 cudf.DataFrame.floor。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。