I have a dataframe where some of the SongIds are repeated. I would like to extract those rows which have the repetition. Any idea how? Tried:
dfB[dfB.SongId.duplicated()]
But didn't work well.
This is an example of my dataframe. SongId 0, 10 and 16 are repeated in this example: