Reduce this Dataset's data by applying ``std`` along some dimension(s). Parameters ---------- dim : str, Iterable of Hashable, "..." or None, default: None Name of dimension[s] along which to apply ``std``. For e.g. ``dim="x"`` or ``dim=["x",
(
self,
dim: Dims = None,
*,
skipna: bool | None = None,
ddof: int = 0,
keep_attrs: bool | None = None,
**kwargs: Any,
)
| 4642 | return out |
| 4643 | |
| 4644 | def std( |
| 4645 | self, |
| 4646 | dim: Dims = None, |
| 4647 | *, |
| 4648 | skipna: bool | None = None, |
| 4649 | ddof: int = 0, |
| 4650 | keep_attrs: bool | None = None, |
| 4651 | **kwargs: Any, |
| 4652 | ) -> Dataset: |
| 4653 | """ |
| 4654 | Reduce this Dataset's data by applying ``std`` along some dimension(s). |
| 4655 | |
| 4656 | Parameters |
| 4657 | ---------- |
| 4658 | dim : str, Iterable of Hashable, "..." or None, default: None |
| 4659 | Name of dimension[s] along which to apply ``std``. For e.g. ``dim="x"`` |
| 4660 | or ``dim=["x", "y"]``. If None, will reduce over the GroupBy dimensions. |
| 4661 | If "...", will reduce over all dimensions. |
| 4662 | skipna : bool or None, optional |
| 4663 | If True, skip missing values (as marked by NaN). By default, only |
| 4664 | skips missing values for float dtypes; other dtypes either do not |
| 4665 | have a sentinel missing value (int) or ``skipna=True`` has not been |
| 4666 | implemented (object, datetime64 or timedelta64). |
| 4667 | ddof : int, default: 0 |
| 4668 | “Delta Degrees of Freedom”: the divisor used in the calculation is ``N - ddof``, |
| 4669 | where ``N`` represents the number of elements. |
| 4670 | keep_attrs : bool or None, optional |
| 4671 | If True, ``attrs`` will be copied from the original |
| 4672 | object to the new one. If False, the new object will be |
| 4673 | returned without attributes. |
| 4674 | **kwargs : Any |
| 4675 | Additional keyword arguments passed on to the appropriate array |
| 4676 | function for calculating ``std`` on this object's data. |
| 4677 | These could include dask-specific kwargs like ``split_every``. |
| 4678 | |
| 4679 | Returns |
| 4680 | ------- |
| 4681 | reduced : Dataset |
| 4682 | New Dataset with ``std`` applied to its data and the |
| 4683 | indicated dimension(s) removed |
| 4684 | |
| 4685 | See Also |
| 4686 | -------- |
| 4687 | numpy.std |
| 4688 | dask.array.std |
| 4689 | Dataset.std |
| 4690 | :ref:`groupby` |
| 4691 | User guide on groupby operations. |
| 4692 | |
| 4693 | Notes |
| 4694 | ----- |
| 4695 | Use the ``flox`` package to significantly speed up groupby computations, |
| 4696 | especially with dask arrays. Xarray will use flox by default if installed. |
| 4697 | Pass flox-specific keyword arguments in ``**kwargs``. |
| 4698 | See the `flox documentation <https://flox.readthedocs.io>`_ for more. |
| 4699 | |
| 4700 | Non-numeric variables will be removed prior to reducing. |
| 4701 |
nothing calls this directly
no test coverage detected