MCPcopy
hub / github.com/pydata/xarray / apply

Method apply

xarray/core/dataset.py:7015–7034  ·  view source on GitHub ↗

Backward compatible implementation of ``map`` See Also -------- Dataset.map

(
        self,
        func: Callable,
        keep_attrs: bool | None = None,
        args: Iterable[Any] = (),
        **kwargs: Any,
    )

Source from the content-addressed store, hash-verified

7013 return type(self)(variables, coords=coords, attrs=attrs)
7014
7015 def apply(
7016 self,
7017 func: Callable,
7018 keep_attrs: bool | None = None,
7019 args: Iterable[Any] = (),
7020 **kwargs: Any,
7021 ) -> Self:
7022 """
7023 Backward compatible implementation of ``map``
7024
7025 See Also
7026 --------
7027 Dataset.map
7028 """
7029 warnings.warn(
7030 "Dataset.apply may be deprecated in the future. Using Dataset.map is encouraged",
7031 PendingDeprecationWarning,
7032 stacklevel=2,
7033 )
7034 return self.map(func, keep_attrs, args, **kwargs)
7035
7036 def assign(
7037 self,

Calls 1

mapMethod · 0.95