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

Method freq

xarray/coding/cftimeindex.py:700–708  ·  view source on GitHub ↗

The frequency used by the dates in the index.

(self)

Source from the content-addressed store, hash-verified

698
699 @property
700 def freq(self):
701 """The frequency used by the dates in the index."""
702 from xarray.coding.frequencies import infer_freq
703
704 # min 3 elemtents required to determine freq
705 if self._data.size < 3:
706 return None
707
708 return infer_freq(self)
709
710 def _round_via_method(self, freq, method):
711 """Round dates using a specified method."""

Callers

nothing calls this directly

Calls 1

infer_freqFunction · 0.90

Tested by

no test coverage detected