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

Method apply

xarray/core/resample.py:368–381  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

366 return combined
367
368 def apply(self, func, args=(), shortcut=None, **kwargs):
369 """
370 Backward compatible implementation of ``map``
371
372 See Also
373 --------
374 DataArrayResample.map
375 """
376 warnings.warn(
377 "Resample.apply may be deprecated in the future. Using Resample.map is encouraged",
378 PendingDeprecationWarning,
379 stacklevel=2,
380 )
381 return self.map(func=func, shortcut=shortcut, args=args, **kwargs)
382
383 def asfreq(self) -> DataArray:
384 """Return values of original object at the new up-sampling frequency;

Callers

nothing calls this directly

Calls 1

mapMethod · 0.95

Tested by

no test coverage detected