用法:
DataFrameGroupBy.describe(include=None, exclude=None)
生成說明性統計數據,總結數據集分布的集中趨勢、離散度和形狀,不包括 NaN 值。
僅分析數字 DataFrame
- include: ‘all’, list-like of dtypes or None (default), optional:
要包含在結果中的數據類型列表。忽略係列。
- exclude: list-like of dtypes or None (default), optional,:
要從結果中省略的數據類型列表。忽略係列。
- Series或DataFrame
提供的 DataFrame 的匯總統計信息。
參數:
返回:
例子:
>>> import cudf >>> gdf = cudf.DataFrame({"Speed": [380.0, 370.0, 24.0, 26.0], "Score": [50, 30, 90, 80]}) >>> gdf Speed Score 0 380.0 50 1 370.0 30 2 24.0 90 3 26.0 80 >>> gdf.groupby('Score').describe() Speed count mean std min 25% 50% 75% max Score 30 1 370.0 <NA> 370.0 370.0 370.0 370.0 370.0 50 1 380.0 <NA> 380.0 380.0 380.0 380.0 380.0 80 1 26.0 <NA> 26.0 26.0 26.0 26.0 26.0 90 1 24.0 <NA> 24.0 24.0 24.0 24.0 24.0
相關用法
- Python cudf.core.groupby.groupby.DataFrameGroupBy.fillna用法及代碼示例
- Python cudf.core.groupby.groupby.DataFrameGroupBy.aggregate用法及代碼示例
- Python cudf.core.groupby.groupby.GroupBy.agg用法及代碼示例
- Python cudf.core.groupby.groupby.GroupBy.apply用法及代碼示例
- Python cudf.core.groupby.groupby.SeriesGroupBy.aggregate用法及代碼示例
- Python cudf.core.groupby.groupby.GroupBy.corr用法及代碼示例
- Python cudf.core.groupby.groupby.GroupBy.pipe用法及代碼示例
- Python cudf.core.column.string.StringMethods.is_vowel用法及代碼示例
- Python cudf.core.column.string.StringMethods.endswith用法及代碼示例
- Python cudf.core.column.string.StringMethods.title用法及代碼示例
- Python cudf.core.column.string.StringMethods.contains用法及代碼示例
- Python cudf.core.column.string.StringMethods.rsplit用法及代碼示例
- Python cudf.core.column.string.StringMethods.zfill用法及代碼示例
- Python cudf.core.series.DatetimeProperties.month用法及代碼示例
- Python cudf.core.column.string.StringMethods.hex_to_int用法及代碼示例
- Python cudf.core.column.string.StringMethods.htoi用法及代碼示例
- Python cudf.core.series.DatetimeProperties.year用法及代碼示例
- Python cudf.core.column.string.StringMethods.character_tokenize用法及代碼示例
- Python cudf.core.column.string.StringMethods.normalize_characters用法及代碼示例
- Python cudf.core.column.string.StringMethods.filter_alphanum用法及代碼示例
注:本文由純淨天空篩選整理自rapids.ai大神的英文原創作品 cudf.core.groupby.groupby.DataFrameGroupBy.describe。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。