how to check column value has duplicates and count code example
Example 1: how to check for duplicates in a column in python
boolean = df['Student'].duplicated().any() # True
Example 2: count duplicates in one column pandas
df.pivot_table(index=['DataFrame Column'], aggfunc='size')