用法:
Series.scale()
在 float64 中將值縮放為 [0, 1]
- DataFrame或Series
值縮放為 [0, 1]。
返回:
例子:
>>> import cudf >>> series = cudf.Series([10, 11, 12, 0.5, 1]) >>> series 0 10.0 1 11.0 2 12.0 3 0.5 4 1.0 dtype: float64 >>> series.scale() 0 0.826087 1 0.913043 2 1.000000 3 0.000000 4 0.043478 dtype: float64
相關用法
- Python cudf.Series.sort_values用法及代碼示例
- Python cudf.Series.std用法及代碼示例
- Python cudf.Series.searchsorted用法及代碼示例
- Python cudf.Series.sort_index用法及代碼示例
- Python cudf.Series.sum_of_squares用法及代碼示例
- Python cudf.Series.subtract用法及代碼示例
- Python cudf.Series.sum用法及代碼示例
- Python cudf.Series.sub用法及代碼示例
- Python cudf.Series.skew用法及代碼示例
- Python cudf.Series.set_index用法及代碼示例
- Python cudf.Series.sin用法及代碼示例
- Python cudf.Series.sample用法及代碼示例
- Python cudf.Series.sqrt用法及代碼示例
- Python cudf.Series.size用法及代碼示例
- 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用法及代碼示例
注:本文由純淨天空篩選整理自rapids.ai大神的英文原創作品 cudf.Series.scale。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。