import pandas as pd # Shows count of all the rows with duplicate values df.duplicated(keep=False).sum()