i am trying to build an application .Its working fine to genrate csv and pdf file .Now i want to generate an zip file which will contain both pdf and csv output how to do that?
my code:
def save_analysis():
file = asksaveasfile(mode='w', defaultextension=".csv", filetypes=[('CSV Files','*.csv')])
print(file.name, "save file name")
predict.generateCSV(adf,file.name)
root.update()
messagebox.showinfo("Saved Analysis", "Successfully Generated and Saved File to :\n" + file.name)
def view_stats():
file = asksaveasfile(mode='w', defaultextension=".pdf", filetypes=[('Pdf Files','*.pdf')])
print(file.name, "save file name")
visual.show_visuals(adf,file.name)
root.update()
messagebox.showinfo("Visualization Saved", "Successfully Generated and Saved File to :\n" + file.name)