Skip to content
C

Problem 1: Detect Duplicate Rows

Easypython

Problem Description

Write a Python program that takes a DataFrame and prints the total number of duplicate rows found.

Input

A DataFrame that may contain duplicate rows.

Output

The total count of duplicate rows.

Constraints

  • None specific.

Example Input

text
{"id": [1, 2, 3, 1], "value": ["A", "B", "C", "A"]}

Example Output

text
Duplicate rows: 1

Concepts Covered

duplicated(), sum().

Input (stdin)

Output

Run your code to see output here...