I have a column with datetime and integer values..However i want to convert even the integer values to datetikme as well.
StartTime EndTime Source
2170-01-01 00:00:00 2170-01-01 00:00:00 NA
1.60405e+18 1.60405e+18 Arm_dearm
I tried using
pd.to_datetime(site_list['StartTime'])
but it yields the same result.
And Ultimately i am not able to run the following line.
np.where(site_list["StartTime"].dt.date!=site_list["EndTime"].dt.date,"armed next day",site_list["Source"])
which throws the following error:
mixed datetimes and integers in passed array