Round dates to a 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-docs
(self, freq)
| 764 | return self._round_via_method(freq, _ceil_int) |
| 765 | |
| 766 | def round(self, freq): |
| 767 | """Round dates to a fixed frequency. |
| 768 | |
| 769 | Parameters |
| 770 | ---------- |
| 771 | freq : str |
| 772 | The frequency level to round the index to. Must be a fixed |
| 773 | frequency like 'S' (second) not 'ME' (month end). See `frequency |
| 774 | aliases <https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#offset-aliases>`_ |
| 775 | for a list of possible values. |
| 776 | |
| 777 | Returns |
| 778 | ------- |
| 779 | CFTimeIndex |
| 780 | """ |
| 781 | return self._round_via_method(freq, _round_to_nearest_half_even) |
| 782 | |
| 783 | @property |
| 784 | def is_leap_year(self): |
no test coverage detected