Zduplikuj dane w Pythonie

duplicate_rows_df = df[df.duplicated()]
print("number of duplicate rows: ", duplicate_rows_df.shape)
Mubarak Uddin