xarray_beam.Dataset.mean¶
- Dataset.mean(dim=None, *, skipna=True, dtype=None, label=None)[source]¶
Compute the mean of this Dataset using Beam combiners.
This can be significantly faster and more memory efficient than using rechunking.
- Parameters:
dim (str | list[str] | tuple[str, ...] | None) – dimension(s) to compute the mean over.
skipna (bool) – whether to skip missing data when computing the mean.
dtype (dtype[Any] | None | type[Any] | _SupportsDType[dtype[Any]] | str | tuple[Any, int] | tuple[Any, SupportsIndex | Sequence[SupportsIndex]] | list[Any] | _DTypeDict | tuple[Any, Any]) – the desired dtype of the resulting Dataset.
label (str | None) – A unique name for this stage of the pipeline. Defaults to
None, in which case a name will be generated.
- Returns:
New Dataset with the mean computed.
- Return type: