You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.18.0.txt
+3-3
Original file line number
Diff line number
Diff line change
@@ -123,7 +123,7 @@ Other enhancements
123
123
Datetimelike rounding
124
124
^^^^^^^^^^^^^^^^^^^^^
125
125
126
-
``DatetimeIndex``, ``Timestamp``, ``TimedeltaIndex``, ``Timedelta`` have gained the ``.round()``method for datetimelike rounding. (:issue:`4314`)
126
+
``DatetimeIndex``, ``Timestamp``, ``TimedeltaIndex``, ``Timedelta`` have gained the ``.round()``, ``.floor()`` and ``.ceil()`` method for datetimelike rounding, flooring and ceiling. (:issue:`4314`, :issue:`11963`)
127
127
128
128
Naive datetimes
129
129
@@ -137,7 +137,7 @@ Naive datetimes
137
137
dr[0]
138
138
dr[0].round('10s')
139
139
140
-
Tz-aware are rounded in local times
140
+
Tz-aware are rounded, floored and ceiled in local times
141
141
142
142
.. ipython:: python
143
143
@@ -158,7 +158,7 @@ Timedeltas
158
158
t[0].round('2h')
159
159
160
160
161
-
In addition, ``.round()`` will be available thru the ``.dt`` accessor of ``Series``.
161
+
In addition, ``.round()``, ``.floor()`` and ``.ceil()`` will be available thru the ``.dt`` accessor of ``Series``.
0 commit comments