I have a dataset my_df with the following structure (dput is added in end of the question)
my_df
dput
> my_df group_id other_id case 1