I have a few DataFrames that I need to zip to one file. This is my code:
df_list = [ojcowskieDF,mateczneDF]
with zipfile.ZipFile('final.zip', 'w') as zipF:
for file in df_list:
zipF.write(file, compress_type=zipfile.ZIP_DEFLATED)
But I get this error:TypeError: stat: path should be string, bytes, os.PathLike or integer, not DataFrame
Does anyone know how to zip a few DF? Thanks for your help