I have a dataframe in python in which I would like to remove everything after the last number of the time given.
Here is the head()
:
Time
0 12:00 am (Begins at 14:00)
1 10:00 - 16:00(EDT)
2 1:00 - 3:00(CDT)
3 1:00 - 7:00
4 9:00 - 10:00
I would like the output to be
Time
0 12:00
1 10:00 - 16:00
2 1:00 - 3:00
3 1:00 - 7:00
4 9:00 - 10:00
Thanks!