Answers for "dataframe remove duplicate from a single column and transpose it into dataframe headers"

1

python - remove repeted columns in a df

df.loc[:,~df.T.duplicated(keep='first')]
Posted by: Guest on October-22-2020

Code answers related to "dataframe remove duplicate from a single column and transpose it into dataframe headers"

Python Answers by Framework

Browse Popular Code Answers by Language