I have this example of pandas dataframe:
| C1 | C2 |
|---|---|
| ciao | type1 |
| anna | type1 |
| anna | type2 |
I would run a query on this dataframe to get all rows that are different on the column C2, but are equal on the column C1. In this specific example, I would like to get this table:
| C1 | C2 |
|---|---|
| anna | type1 |
| anna | type2 |
Is it possible? THANKS!