Have a datetime column in pandas dataframe with values like these:
time
2018-04-11 22:18:30.122
2018-04-11 23:00:21.399
I'm wondering how can I round these values, get rid of milliseconds and represent only date, hour, minutes and 00 as seconds like this:
time
2018-04-11 22:18:00
2018-04-11 23:00:00
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…