how to eliminate duplicates inside a coulmn in data dataframe python code example Example: remove duplicate columns python dataframe df = df.loc[:,~df.columns.duplicated()]