cudf.Series.scale#
- Series.scale()#
Scale values to [0, 1] in float64
- Returns
- DataFrame or Series
Values scaled to [0, 1].
Examples
>>> 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