Skip to content

Commit 5c54db8

Browse files
Fixing docstring order (and test because NaT and Timestamp docstring did not match)
1 parent 211d8ad commit 5c54db8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pandas/_libs/tslibs/nattype.pyx

+4-4
Original file line numberDiff line numberDiff line change
@@ -471,10 +471,6 @@ class NaTType(_NaT):
471471
"""
472472
Round the Timestamp to the specified resolution
473473
474-
Returns
475-
-------
476-
a new Timestamp rounded to the given resolution of `freq`
477-
478474
Parameters
479475
----------
480476
freq : a freq string indicating the rounding resolution
@@ -497,6 +493,10 @@ class NaTType(_NaT):
497493
498494
.. versionadded:: 0.24.0
499495
496+
Returns
497+
-------
498+
a new Timestamp rounded to the given resolution of `freq`
499+
500500
Raises
501501
------
502502
ValueError if the freq cannot be converted

0 commit comments

Comments
 (0)