I hope someone can help.
I'm in the situation where I need to delete rows from one CSV file based on another CSV. Consider this simple example:
Time Some Column
4/25/2016 06:20:00 A
4/25/2016 06:20:01 B
4/25/2016 06:20:02 B
4/25/2016 06:20:03 B
4/25/2016 06:20:04 A
4/25/2016 06:20:05 A
Then I have another file:
Time Block
4/25/2016 06:20:00 Block B for 10 seconds
I should be able to use the second file and read it into my program such that it will delete any rows with with 'B' in 'Some Column' for 10 seconds after 6:20:00, so in effect, I need some function that will look at the first and second CSV file and produce this for me:
Time Some Column
4/25/2016 06:20:00 A
4/25/2016 06:20:04 A
4/25/2016 06:20:05 A
Please note that the CSV's I am dealing with have over 3 million rows so using something slow like openpyxl is not really an option, any ideas?