df =
Name Age City
Jack 34 Sydney
Riti 30 Delhi
Aadi 16 New York
Riti 30 Delhi
Riti 30 Delhi
Riti 30 Mumbai
Aadi 40 London
Sachin 30 Delhi
df[df.duplicated(keep='last')]
The above code gives the list of duplicated. But what I need is if the df contains atleast 1 duplicate, then it should return The df contains duplicate rows.