Answers for "python - remove columns with same name and keep first"

0

python - remove columns with same name and keep first

df1 = df.loc[:, ~df.columns.duplicated()]
Posted by: Guest on October-22-2020

Code answers related to "python - remove columns with same name and keep first"

Python Answers by Framework

Browse Popular Code Answers by Language