I am trying to compare a Pandas datetime to a Python datetime.
The code
cur_t = pandas.Timestamp.utcnow()
Gives:
Timestamp('2019-02-14 14:31:40.283415+0000', tz='UTC')
And the code
data_t=indata.data.loc[2000].last_time
Gives:
Timestamp('2019-02-14 14:28:32+0000', tz='UTC')
However, subtracting data_t from cur_t gives TypeError: Timestamp subtraction must have the same timezones or no timezones
What is going on here? Why can't andas compare two times with the same timezone?