4/12/2023 0 Comments Bulk image downloader key![]() ![]() Below you can find the script that can compress multiple files in a single zip file. ![]() This automation script uses the built-in Zip file module that helps you to make your large files smaller by compressing their sizes. # Parse CSV import csv def Parse_CSV(filename): with open(filename, 'rb') as csvfile: reader = csv.reader(csvfile, delimiter=',', quotechar='|') for row in reader: print(', '.join(row)) def Write_CSV(): with open('test.csv', 'wb') as csvfile: w = csv.writer(csvfile, delimiter=',') w.writerow() w.writerow() w.writerow() Parse_CSV("test.csv") Write_CSV() □ Compress Large Files This script is very handy when you need a lightweight module for reading and writing multiple CSV files. In the below python script, I will show you how you can read and write CSV without any external module. No need to install extensive modules like Pandas when you have a built-in excellent CSV parsing library.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |