I have a CSV file with a list of names in it that I want to modify and return a list of. What is the best way to import the CSV, loop through my function, and return a list with all of the modified names?
Thanks!
I have a CSV file with a list of names in it that I want to modify and return a list of. What is the best way to import the CSV, loop through my function, and return a list with all of the modified names?
Thanks!
import csv
with open('your_csv.csv','r', encoding='utf-8') as file:
reader = csv.reader(file)
your_list = [row for row in reader]