python – show repeted values in a column

Do you want to know the information regarding “python – show repeted values in a column”. If yes, you’re in the correct tutorial.

python – show repeted values in a column

df = df[df.duplicated(subset=['val1','val2'], keep=False)]
print (df)
   id  val1  val2
0   1   1.1   2.2
1   1   1.1   2.2
3   3   8.8   6.2
4   4   1.1   2.2
5   5   8.8   6.2
df = df[df.duplicated(subset=['val1','val2'], keep=False)]

Final Words

I hope this tutorial helps you to know about “python – show repeted values in a column”. If you have any queries regarding this post please let us know via the comment section. Share this tutorial with your friends & family via social networks.

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coder Diksha. Here, I post about programming to help developers.

Share on:

Leave a Comment