pandas.DatetimeIndex.normalize

pandas 3.1.1 · Index objects · method

Set the clock time to midnight while preserving the calendar date and timezone.

Call syntax

DatetimeIndex.normalize()

Run the example

Edit the example and select Run Python to see the result.

Parameters

This call takes no arguments.

Returns

DatetimeArray, DatetimeIndex or Series