I have the following dataframe, df:
Subject Marks1 Marks2
English 1 10
English 1.5 20
English 1.7 30
English 3 40
Science 1 10
Science 1.5 20
Science 1.7 15
Science 3 35
I want to group by subjects and check if Marks2 is strictly increasing with increasing Marks1. If not then I want to remove that group from df and put it in another issues dataframe. So finally I will have, df:
Subject Marks1 Marks2
English 1 10
English 1.5 20
English 1.7 30
English 3 40
issues:
Subject Marks1 Marks2
Science 1 10
Science 1.5 20
Science 1.7 15
Science 3 35