How to select and delete columns with duplicate name in pandas DataFrame

Viewed 22880

I have a huge DataFrame, where some columns have the same names. When I try to pick a column that exists twice, (eg del df['col name'] or df2=df['col name']) I get an error. What can I do?

4 Answers
Related