Answer the question
In order to leave comments, you need to log in
How to append excel in python?
There is a code:
import pandas
#....getting data
data = {
'ID пользователя' : [user_id],
'Пользователь' : [username],
'Сообщение пользователя' : [message.text],
'С чата' : [chat_username],
'Дата написания' : [send_time],
'С категории' : [category]
}
dataFrame = pandas.DataFrame(data)
dataFrame.to_excel('data.xlsx', index=False)
Answer the question
In order to leave comments, you need to log in
https://pandas.pydata.org/docs/reference/api/panda... Pay
attention to the startrow parameter
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question