The csv module can do this for you.
https://docs.python.org/3/library/csv.ht...DictReader
If you scroll down, you see some other examples.
import csv result = [] with open('PL.csv') as fd: reader = csv.DictReader(fd) for row in reader: result.append(row) print(result)You get a list with dicts. The headers are included as keys in the dicts.
https://docs.python.org/3/library/csv.ht...DictReader
If you scroll down, you see some other examples.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!