To open a CSV file, split the third column, save the modification, and iterate over all CSV files in a folder in Python, you can use the csv
module for file handling and the os
module for working with folders. Here's an example:
main.py883 chars27 lines
Make sure to replace /path/to/folder
with the actual path to the folder containing the CSV files. Also, keep in mind that the code assumes the third column starts at index 2 in the CSV file. Adjust the index accordingly if your CSV file has a different structure.
gistlibby LogSnag