dataframe remove duplicate from a single column and transpose it into dataframe headers code example
Example: python - remove repeted columns in a df
df.loc[:,~df.T.duplicated(keep='first')]
df.loc[:,~df.T.duplicated(keep='first')]