pandas read csv ignore unnamed code example
Example 1: pd read csv unname
pd.read_csv(file_name, index_col=0)
Example 2: remove unnamed columns pandas
df2.columns.str.match("Unnamed")
df2.loc[:,~df2.columns.str.match("Unnamed")]
pd.read_csv(file_name, index_col=0)
df2.columns.str.match("Unnamed")
df2.loc[:,~df2.columns.str.match("Unnamed")]