Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas remove duplicates columns

df = df.loc[:,~df.columns.duplicated()].copy()

# https://stackoverflow.com/questions/14984119/python-pandas-remove-duplicate-columns
Source by www.pauldesalvo.com #
 
PREVIOUS NEXT
Tagged: #pandas #remove #duplicates #columns
ADD COMMENT
Topic
Name
8+6 =