I have a Pandas Series of DateTime
>> s
0 NaT
3 23:00:42
26 NaT
53 23:58:58
89 01:06:27
...
20215 NaT
20217 NaT
20239 23:28:38
20246 NaT
20270 NaT
I first drop the NaT using:
s.dropna()
3 23:00:42
53 23:58:58
89 01:06:27
97 01:18:36
195 05:43:07
...
20132 19:21:20
20141 20:08:01
20152 20:21:01
20199 22:25:50
20239 23:28:38
Now I try to get the hours from the series but not sure how to do that.