pandas / 0.22.0 / generated / pandas.datetimeindex.round.html /

pandas.DatetimeIndex.round

DatetimeIndex.round(freq, *args, **kwargs) [source]

round the index to the specified freq

Parameters: freq : freq string/object
Returns: index of same type
Raises: ValueError if the freq cannot be converted

© 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.22.0/generated/pandas.DatetimeIndex.round.html