A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pandas.pydata.org/pandas-docs/stable/reference/api/../api/pandas.Timedelta.round.html below:

pandas.Timedelta.round — pandas 2.3.1 documentation

pandas.Timedelta.round#
Timedelta.round(freq)#

Round the Timedelta to the specified resolution.

Parameters:
freqstr

Frequency string indicating the rounding resolution. It uses the same units as class constructor Timedelta.

Returns:
a new Timedelta rounded to the given resolution of freq
Raises:
ValueError if the freq cannot be converted

Examples

>>> td = pd.Timedelta('1001ms')
>>> td
Timedelta('0 days 00:00:01.001000')
>>> td.round('s')
Timedelta('0 days 00:00:01')

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4