I have a dataframe that looks like this:
subject session
1 1:1
1 2:1
1 3:1
1 3:2
What i'm looking to do is if there are instances of second attempts in a session (e.g. 3:2) then I want to delete the rows that have both the first and second attempts of that session. So in this example I want to tell python to delete both 3:1 and 3:2