I have a df
id val1 val2
1 1.1 2.2
1 1.1 2.2
2 2.1 5.5
3 8.8 6.2
4 1.1 2.2
5 8.8 6.2
I want to group by val1 and val2
and get similar dataframe only with rows which has multiple occurrence of same val1 and val2
combination.
Final df
:
id val1 val2
1 1.1 2.2
4 1.1 2.2
3 8.8 6.2
5 8.8 6.2