how to delete duplicate column values pandas and convert other columns to list code example Example: remove duplicate columns python dataframe df = df.loc[:,~df.columns.duplicated()]