Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python - remove columns with same name and keep first

df1 = df.loc[:, ~df.columns.duplicated()]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #remove #columns
ADD COMMENT
Topic
Name
9+6 =