File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -947,6 +947,12 @@ class NaTType(_NaT):
947
947
"""
948
948
Round the Timestamp to the specified resolution.
949
949
950
+ This method rounds the given Timestamp down to a specified frequency
951
+ level. It is particularly useful in data analysis to normalize timestamps
952
+ to regular frequency intervals. For instance, rounding to the nearest
953
+ minute, hour, or day can help in time series comparisons or resampling
954
+ operations.
955
+
950
956
Parameters
951
957
----------
952
958
freq : str
@@ -981,6 +987,14 @@ timedelta}, default 'raise'
981
987
------
982
988
ValueError if the freq cannot be converted
983
989
990
+ See Also
991
+ --------
992
+ datetime.round : Similar behavior in native Python datetime module.
993
+ Timestamp.floor : Round the Timestamp downward to the nearest multiple
994
+ of the specified frequency.
995
+ Timestamp.ceil : Round the Timestamp upward to the nearest multiple of
996
+ the specified frequency.
997
+
984
998
Notes
985
999
-----
986
1000
If the Timestamp has a timezone, rounding will take place relative to the
You can’t perform that action at this time.
0 commit comments