how to remove duplicate columns in python dataframe code example Example: remove duplicate columns python dataframe df = df.loc[:,~df.columns.duplicated()]