DatetimeIndex.round()

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