# Remove by index df = df[df.index.duplicated(keep='first')] # Other methods to remove duplicates import pandas as pd df = df.drop_duplicates() df = df.drop_duplicates(subset = "column") df = df.drop_duplicates(subset = ["column", "column2"])