del df["Unnamed: 0", "Unnamed: 0.1"] code example Example: remove unnamed 0 column pandas df.to_csv(index=False)