I'm trying to filter my CSV by the value of one column, and then remove duplicate rows based on the values of 2 columns. For the sake of simplicity, here's an example. I would like to remove duplicate rows based on columns ID1, ID2 and Year. I would also like to filter my results by only pulling back rows with "3" in the VALUE column.
ID1,ID2,YEAR,LAT,LON,VALUE
A,B,2016,123,456,3
A,B,2016,133,466,3
A,B,2016,122,446,3
C,D,2015,223,456,3
C,D,2015,241,455,3
A,B,2016,123,456,2
A,B,2016,133,466,2
A,B,2016,122,446,2
C,D,2015,223,456,2
C,D,2015,241,455,2
RESULT:
ID1,ID2,YEAR,LAT,LON,VALUE
A,B,2016,123,456,3
C,D,2015,223,456,3