Here is the timestamp column:
TIME
2018-03-02 11:57:37
2018-03-12 10:36:16
2018-03-29 12:02:21
2018-03-23 16:37:08
2018-03-09 22:22:28
.
.
And I tried merge and faced the following error.
TypeError: '<' not supported between instances of 'datetime.datetime' and 'int'
So I tried to find a column with a different data type like under code, but it didn't worked.
for i in range(len(ds)):
if type(ds['TIME'].loc[i]) != type(ds['TIME'].loc[1]) :
ds = ds.drop(i)
# type(ds['TIME'].loc[1]) was confirmed that it was a timestamp type
how can i solve this problem?
I would be grateful if you give me some good advice.
this is what i try.
raw_data = pd.merge_ordered(ds,ds2)
#ds2 is similar data like ds
+I think it might be a parse problem in db.