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

Method ceil

xarray/core/accessor_dt.py:286–300  ·  view source on GitHub ↗

Round timestamps upward to specified frequency resolution. Parameters ---------- freq : str a freq string indicating the rounding resolution e.g. "D" for daily resolution Returns ------- ceil-ed timestamps : same type as values

(self, freq: str)

Source from the content-addressed store, hash-verified

284 return self._tslib_round_accessor("floor", freq)
285
286 def ceil(self, freq: str) -> T_DataArray:
287 """
288 Round timestamps upward to specified frequency resolution.
289
290 Parameters
291 ----------
292 freq : str
293 a freq string indicating the rounding resolution e.g. "D" for daily resolution
294
295 Returns
296 -------
297 ceil-ed timestamps : same type as values
298 Array-like of datetime fields accessed for each element in values
299 """
300 return self._tslib_round_accessor("ceil", freq)
301
302 def round(self, freq: str) -> T_DataArray:
303 """

Callers 8

_auto_gridFunction · 0.45
__init__Method · 0.45
format_array_flatFunction · 0.45
arangeMethod · 0.45
test_ceilFunction · 0.45

Calls 1

_tslib_round_accessorMethod · 0.95

Tested by 2

test_ceilFunction · 0.36