0

I want to filter data that only start timestamp happen before finish timestamp

Here's my data

id  finish               start
1   2018-02-06 13:24:23  2018-02-06 11:11:23
2   2018-02-06 17:25:01  2018-02-06 08:45:20
3   2018-02-06 05:45:19  2018-02-06 06:18:16
4   2018-02-08 12:23:51  2018-02-06 11:11:59

Here's what I want

id  finish               start
1   2018-02-06 13:24:23  2018-02-06 11:11:23
2   2018-02-06 17:25:01  2018-02-06 08:45:20
4   2018-02-08 12:23:51  2018-02-06 11:11:59

because df['finish'] is before df['start'] so id 3 is removed

Nabih Bawazir
  • 6,381
  • 7
  • 37
  • 70

0 Answers0