SyntaxFix
Write A Post
Hire A Developer
Questions
Pandas DatetimeIndex and Series have a method called normalize that does exactly what you want.
DatetimeIndex
Series
normalize
You can read more about it in this answer.
It can be used as ser.dt.normalize()
ser.dt.normalize()