MCPcopy Index your code
hub / github.com/pydata/xarray / apply

Method apply

xarray/core/groupby.py:1836–1850  ·  view source on GitHub ↗

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

(self, func, args=(), shortcut=None, **kwargs)

Source from the content-addressed store, hash-verified

1834 return self._combine(applied)
1835
1836 def apply(self, func, args=(), shortcut=None, **kwargs):
1837 """
1838 Backward compatible implementation of ``map``
1839
1840 See Also
1841 --------
1842 DatasetGroupBy.map
1843 """
1844
1845 warnings.warn(
1846 "GroupBy.apply may be deprecated in the future. Using GroupBy.map is encouraged",
1847 PendingDeprecationWarning,
1848 stacklevel=2,
1849 )
1850 return self.map(func, shortcut=shortcut, args=args, **kwargs)
1851
1852 def _combine(self, applied):
1853 """Recombine the applied objects like the original."""

Callers

nothing calls this directly

Calls 1

mapMethod · 0.95

Tested by

no test coverage detected