I have a data frame;
Date Price Product
1/1/12 22 Pen
1/2/12 44 Paper
1/2/12 33 Paper
1/3/12 34 Paper
And I want to just have the min value if there are duplicates for Date and Product.
So the expected output is
Date Price Product
1/1/12 22 Pen
1/2/12 33 Paper
1/3/12 34 Paper
I am happy to keep the data in the flat file format or create a time series pivot table.
The only option I can currently see is to sort by price (highest to lowest) and then remove duplicates and keep 'last'. but was keen to explore if there is a better way to do this