modin.pandas.DataFrameGroupBy.mean¶
- DataFrameGroupBy.mean(numeric_only=False, engine=None, engine_kwargs=None)[source]¶
Compute mean of groups, excluding missing values.
- Parameters:
numeric_only (bool, default False) – Include only float, int, boolean columns.
engine (str, default None) –
'cython': Runs the operation through C-extensions from cython.'numba': Runs the operation through JIT compiled code from numba.None: Defaults to'cython'or globally settingcompute.use_numba
This parameter is ignored in Snowpark pandas, as the execution is always performed in Snowflake.
engine_kwargs (dict, default None) –
For
'cython'engine, there are no acceptedengine_kwargs- For
'numba'engine, the engine can acceptnopython,nogil and
paralleldictionary keys. The values must either beTrueorFalse. The defaultengine_kwargsfor the'numba'engine is{{'nopython': True, 'nogil': False, 'parallel': False}}
- For
This parameter is ignored in Snowpark pandas, as the execution is always performed in Snowflake.
- Return type:
Examples
Groupby one column and return the mean of the remaining columns in each group.
Groupby two columns and return the mean of the remaining column.
Groupby one column and return the mean of only one particular column in the group.