I have a dataset like this:
id type value
1 001 0 1991
2 001 0 1992
3 001 1 1993
4 001 1 1994
5 002 1 1992
6 002 1 1993
7 003 0 1999
8 003 1 2000
9 003 0 2001
And I want to choose the rows on my dataset after first with type equal to 1
.
The final expected result should be as follows:
id type value
3 001 1 1993
4 001 1 1994
5 002 1 1992
6 002 1 1993
8 003 1 2000
9 003 0 2001
I know that groups it by id
first. But I have no idea to do next step.
Does anyone have any suggestions?