Python 如何在没有索引的情况下保存数据帧

Python 如何在没有索引的情况下保存数据帧,python,pandas,dataframe,Python,Pandas,Dataframe,您似乎希望不使用索引进行保存: 请告诉我们有关excel文件中数据结构的更多信息。是否尝试删除索引?liste.to_exceloutput.xlsx,index=False import numpy as np import pandas as pd from pandas import ExcelWriter import matplotlib.pyplot as plt liste = pd.read_excel("testListe.xlsx") #delete the number

您似乎希望不使用索引进行保存:


请告诉我们有关excel文件中数据结构的更多信息。是否尝试删除索引?liste.to_exceloutput.xlsx,index=False
import numpy as np
import pandas as pd
from pandas import ExcelWriter
import matplotlib.pyplot as plt

liste = pd.read_excel("testListe.xlsx")

#delete the numbering column in dataframe

liste.to_excel("output.xlsx")
liste.to_excel("output.xlsx", index=False)