Timedelta.resolution
Return a string representing the lowest timedelta resolution.
Each timedelta has a defined resolution that represents the lowest OR most granular level of precision. Each level of resolution is represented by a short string as defined below:
Resolution: Return value
Returns: |
|
---|
>>> td = pd.Timedelta('1 days 2 min 3 us 42 ns') >>> td.resolution 'N'
>>> td = pd.Timedelta('1 days 2 min 3 us') >>> td.resolution 'U'
>>> td = pd.Timedelta('2 min 3 s') >>> td.resolution 'S'
>>> td = pd.Timedelta(36, unit='us') >>> td.resolution 'U'
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.25.0/reference/api/pandas.Timedelta.resolution.html