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)
| 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 | """ |