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

Method asfreq

xarray/core/resample.py:383–392  ·  view source on GitHub ↗

Return values of original object at the new up-sampling frequency; essentially a re-index with new times set to NaN. Returns ------- resampled : DataArray

(self)

Source from the content-addressed store, hash-verified

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;
385 essentially a re-index with new times set to NaN.
386
387 Returns
388 -------
389 resampled : DataArray
390 """
391 self._obj = self._drop_coords()
392 return self.mean(None if self._dim is None else [self._dim])
393
394
395class DatasetResample(

Callers

nothing calls this directly

Calls 2

_drop_coordsMethod · 0.45
meanMethod · 0.45

Tested by

no test coverage detected