how to drop duplicate columns in pandas that dont have the same name

36

# Drop duplicate columns
df2 = df.T.drop_duplicates().T
print(df2)

Comments

Submit
0 Comments