SyntaxFix
Write A Post
Hire A Developer
Questions
First, find the columns that have 'unnamed', then drop those columns. Note: You should Add inplace = True to the .drop parameters as well.
inplace = True
.drop
df.drop(df.columns[df.columns.str.contains('unnamed',case = False)],axis = 1, inplace = True)