Created
August 23, 2022 10:23
-
-
Save Zmey56/f4fed626c06cc5b61bd34266d1ad77fd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data = Getch('select * from simulator.feed_actions where toDate(time) = today() limit 100').df | |
file_object = io.StringIO() | |
data.to_csv(file_object) | |
file_object.name = 'test_file.csv' | |
file_object.seek(0) | |
bot.sendDocument(chat_id=chat_id, document = file_object) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment