I have a data frame that contains column time. The data type of time column is timedelta64[ns]
. The time column contains 0 days as a suffix. The time column looks like as follow:
df['time']:
0 days 00:00:00
0 days 00:30:00
0 days 01:00:00
0 days 01:30:00
0 days 02:00:00
I am trying to remove the 0 days from the column by following the existing thread (Remove the days in the timedelta object). However, it did not remove 0 days from the column. Could anyone guide me on how to get rid of 0 days from the timedelta64 datatype column?