how to check for duplicate rows in python code example Example: how to check for duplicates in a column in python boolean = df['Student'].duplicated().any() # True