DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
drop all unnamed columns pandas
df.drop(df.columns[df.columns.str.contains('unnamed',case = False)],axis = 1, inplace = True)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#drop
#unnamed
#columns
#pandas
ADD COMMENT
Topic
COMMENT
Name
4+3 =
Submit