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

Method ceil

xarray/coding/cftimeindex.py:749–764  ·  view source on GitHub ↗

Round dates up to fixed frequency. Parameters ---------- freq : str The frequency level to round the index to. Must be a fixed frequency like 'S' (second) not 'ME' (month end). See `frequency aliases <https://pandas.pydata.org/pandas-doc

(self, freq)

Source from the content-addressed store, hash-verified

747 return self._round_via_method(freq, _floor_int)
748
749 def ceil(self, freq):
750 """Round dates up to fixed frequency.
751
752 Parameters
753 ----------
754 freq : str
755 The frequency level to round the index to. Must be a fixed
756 frequency like 'S' (second) not 'ME' (month end). See `frequency
757 aliases <https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#offset-aliases>`_
758 for a list of possible values.
759
760 Returns
761 -------
762 CFTimeIndex
763 """
764 return self._round_via_method(freq, _ceil_int)
765
766 def round(self, freq):
767 """Round dates to a fixed frequency.

Callers 2

_ceil_via_cftimeindexFunction · 0.95
format_timesFunction · 0.45

Calls 1

_round_via_methodMethod · 0.95

Tested by

no test coverage detected