Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

delete unnamed coloumns in pandas

# Best method so far.
df = df.loc[:, ~df.columns.str.contains('^Unnamed')]
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #delete #unnamed #coloumns #pandas
ADD COMMENT
Topic
Name
6+8 =