Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

list of files to zip python

import zipfile

lista_files = ["12.csv","13.csv","14.csv"]
with zipfile.ZipFile('out.zip', 'w') as zipMe:        
    for f in lista_files:
        zipMe.write(f, compress_type=zipfile.ZIP_DEFLATED)
Comment

PREVIOUS NEXT
Code Example
Python :: get working directory in python 
Python :: accessing data on django sessionstore 
Python :: python defaultdict 
Python :: sns palette 
Python :: ipython on cmd 
Python :: python read folder 
Python :: colab add package 
Python :: pandas to_csv no index 
Python :: django jalali date 
Python :: python how to open a file in a different directory in mac 
Python :: import pyplot python 
Python :: merge two dataframes with common columns 
Python :: how to make custom buttons tkinter 
Python :: plot rows of dataframe pandas 
Python :: np.hstack 
Python :: instagram login with selenium py 
Python :: how to print a string by reverse way in python 
Python :: display youtube video in jupyter notebook 
Python :: python multithreading tutorials 
Python :: python turn true or false into 0 or 1 
Python :: pytorch detach 
Python :: iterate over list and select 2 values together python 
Python :: time until 2021 
Python :: lista to txt python 
Python :: clearing canvas tkinter 
Python :: 3d array in numpy 
Python :: how to add column to np array 
Python :: how to get only certain columns in pandas 
Python :: how to read text frome another file pythion 
Python :: plotly line plot 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =