W
W
wasabichen2022-03-08 20:17:04
Python
wasabichen, 2022-03-08 20:17:04

How to send data from a document / spreadsheet to excel via telegram bot in python?

I would like to add a search function to a telegram bot that takes data from, say, an excel spreadsheet and imports it into a chat. I need to send data from the file, not the file itself(

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kvason, 2022-03-08
@Kvason

Pandas or any other library that allows you to work with excel

P
PavelMos, 2022-03-09
@PavelMos

Pandas is at its simplest if the part of the table itself where the data is has no merged cells.
pandas.DataFrame.read_excel(....)
If it's easier with cell addressing, for example, take the content from "E100", then
https://pypi.org/project/openpyxl/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question