From b8e470e47e8715ece3075c6851ce7c2eaa4cadf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=BD=C3=A1=C4=8Dek?= Date: Tue, 12 Apr 2022 14:23:38 +0200 Subject: [PATCH] done --- vdgdsp_final.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vdgdsp_final.py b/vdgdsp_final.py index 673efcb..b5cb300 100644 --- a/vdgdsp_final.py +++ b/vdgdsp_final.py @@ -2,6 +2,7 @@ import csv import os import platform import sys +import pandas as pd from discord_webhook import DiscordWebhook @@ -194,9 +195,12 @@ csv_file4.close() +read_file = pd.read_csv (r'output_VFGDSP_202202.CSV') +read_file.to_excel (r'output_VFGDSP_202202.xlsx', index = None, header=True,sheet_name='pocty',) -with open("output_VFGDSP_202202.csv", "rb") as f: - webhook.add_file(file=f.read(), filename='output_VFGDSP_202202.csv') + +with open("output_VFGDSP_202202.xlsx", "rb") as f: + webhook.add_file(file=f.read(), filename='output_VFGDSP_202202.xlsx') response = webhook.execute()