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 @@ -2015,6 +2015,12 @@ class Timestamp(_Timestamp):
2015
2015
"""
2016
2016
Round the Timestamp to the specified resolution.
2017
2017
2018
+ This method rounds the given Timestamp down to a specified frequency
2019
+ level. It is particularly useful in data analysis to normalize timestamps
2020
+ to regular frequency intervals. For instance, rounding to the nearest
2021
+ minute, hour, or day can help in time series comparisons or resampling
2022
+ operations.
2023
+
2018
2024
Parameters
2019
2025
----------
2020
2026
freq : str
@@ -2049,6 +2055,14 @@ timedelta}, default 'raise'
2049
2055
------
2050
2056
ValueError if the freq cannot be converted
2051
2057
2058
+ See Also
2059
+ --------
2060
+ datetime.round : Similar behavior in native Python datetime module.
2061
+ Timestamp.floor : Round the Timestamp downward to the nearest multiple
2062
+ of the specified frequency.
2063
+ Timestamp.ceil : Round the Timestamp upward to the nearest multiple of
2064
+ the specified frequency.
2065
+
2052
2066
Notes
2053
2067
-----
2054
2068
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