You can check for duplicate rows in a Pandas DataFrame using the duplicated() method. This method returns a boolean Series that indicates whether each row is a duplicate or not.
Example Code :
import pandas as pd
# Create a sample DataFrame
data = {'A': [1, 2, 2, 3, 4],
'B': ['X', 'Y', 'Y', 'Z', 'X']}
df = pd.DataFrame(data)
# Check for duplicate rows
duplicates = df.duplicated()
print(duplicates)