sudoedit, Ok #Python guru's.
I'm working on a very simple csv reader and I can't get the value from the first column.
I've got a csv file like this:
Last Name,First Name
Smith,Joeand then a short python script like this:
import csvwith open("test.csv",'r', encoding='utf-8-sig') as f:
reader = csv.DictReader(f)
for row in reader:
print(row['First Name'], row['Last name'])
print(row)if I remove row['Last Name'] from the print statement I get the first names.
Add comment