dataframe drop duplicate column code example Example: python - remove repeted columns in a df Click to copydf.loc[:,~df.T.duplicated(keep='first')]