用法:
Series.sum_of_squares(dtype=None)
返回值的平方和。
- dtype: data type:
要將結果轉換為的數據類型。
- Series
參數:
返回:
例子:
>>> import cudf >>> df = cudf.DataFrame({'a': [3, 2, 3, 4], 'b': [7, 0, 10, 10]}) >>> df.sum_of_squares() a 38 b 249 dtype: int64
相關用法
- Python cudf.Series.sum用法及代碼示例
- Python cudf.Series.subtract用法及代碼示例
- Python cudf.Series.sub用法及代碼示例
- Python cudf.Series.sort_values用法及代碼示例
- Python cudf.Series.std用法及代碼示例
- Python cudf.Series.searchsorted用法及代碼示例
- Python cudf.Series.sort_index用法及代碼示例
- Python cudf.Series.scale用法及代碼示例
- 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.sum_of_squares。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。