In more recent versions of Pandas (I am using 1.2.3) when reading times from an excel file, there is a problem when the time is 00:00:00. Below script, where filepath is the route to my excel file, which contains a column with a header named 'Time'.
import pandas as pd
df = pd.read_excel(filepath)
print(df['Time'])
Output:
0 20:00:00
1 22:00:00
2 23:00:00
3 1899-12-30 00:00:00
4 02:00:00
5 02:45:00
6 03:30:00
7 04:00:00
8 04:45:00
9 05:30:00
10 07:00:00
11 08:00:00
12 08:45:00
13 09:30:00
14 10:30:00
15 10:45:00
16 11:45:00
17 12:30:00
18 13:15:00
19 14:00:00
20 14:45:00
21 15:45:00
22 23:00:00
23 1899-12-30 00:00:00
This was not the case in version 1.0.5.
Is there a way to read in these times correctly, without the date on rows 3 and 23 above?