I have a csv file
col1, col2, col3 1, 2, 3 4, 5, 6
I want to create a list of dictionary from this csv.
output as :
Another simpler answer:
import csv with open("configure_column_mapping_logic.csv", "r") as f: reader = csv.DictReader(f) a = list(reader) print a