I have a dataframe with two columns of values by ID. I want to compare col_1 and col_2 to see if any col_1 value by IDs bigger than the whole values of col_2 by ID. How can i achieve this? Dataframe looks like this;
data = {'ID': [0, 1, 1, 2, 2, 2, 3],
'col_1': [5,15,35,50,55,55,75],
'col_2': [10,20,30,40,50,60,70]}