LastUpdate TS_UPDATE
0 2020-02-02 2019-10-30 15:27:20
6 2020-02-02 2019-10-30 15:27:14
8 2020-02-02 2019-10-30 15:27:07
9 2020-02-02 2019-10-30 15:27:07
10 2020-02-02 2019-10-30 15:27:07
11 2020-02-02 2019-10-30 15:27:05
12 2020-02-02 2019-10-30 15:27:04
13 2020-02-02 2019-10-30 15:27:03
14 2020-02-02 2019-10-30 15:27:03
15 2020-02-02 2019-10-30 15:27:02
How can I check if the LastUpdate
is newer than TS_UPDATE
? OR probably better:
if TS_UPDATE
is OLDER than LastUpdate
if that isnt the case -> drop row.
Can anyone help me out?
Is it possible to do by boolean (> / <
)?
for row in df:
if df["LastUpdate"][row] < df["TS_UPDATE"][row]:
#drop row