count number of same values pandas code example
Example 1: number of times a value occurs in dataframne
df['a'].value_counts()
Example 2: count how many duplicates python pandas
df.duplicated(subset='one', keep='first').sum()
df['a'].value_counts()
df.duplicated(subset='one', keep='first').sum()