get the dataframe if the same element is repeated in a column pyhton 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')