how to read first column of csv intro a list python code example
Example: how to read first column of csv intro a list python
with open("mylist.csv") as f:
list2 = [row.split()[0] for row in f]
with open("mylist.csv") as f:
list2 = [row.split()[0] for row in f]