delete unnamed column pandas csv after import code example
Example: remove unnamed columns pandas
df2.columns.str.match("Unnamed")
df2.loc[:,~df2.columns.str.match("Unnamed")]
df2.columns.str.match("Unnamed")
df2.loc[:,~df2.columns.str.match("Unnamed")]