Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to save dataframe without an index

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")
like image 764
bellarej Avatar asked Feb 16 '26 18:02

bellarej


1 Answers

It seems like you want to save without index:

liste.to_excel("output.xlsx", index=False)
like image 148
zipa Avatar answered Feb 19 '26 08:02

zipa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!