I have the following columns:
3 0
3 0
3 1
3 0
3 1
4 0
4 0
4 1
4 1
4 0
4 0
5 0
...
For every number in the first column, I want to delete all the rows after the first 1 in the second column.
So, I must obtain this:
3 0
3 0
3 1
4 0
4 0
4 1
5 0
...
So I deleted:
3 0
3 0
3 1
3 0 deleted
3 1 deleted
4 0
4 0
4 1
4 1 deleted
4 0 deleted
4 0 deleted
5 0
...
How do I do that? I must do this for a thousand numbers and doing it by hand is very time consuming.
Thanks a lot in advance.
Bookmarks