I have a csv file with data like
Name Cost SKU QTY
Julia 1 13 10
John 5 23 1
Julia 3 40 5
I would like to return a dictionary as:
{'Julia':'10', 'John':'1', 'Julia':'5'....}
My code is returning no duplicates as of now.
I have a csv file with data like
Name Cost SKU QTY
Julia 1 13 10
John 5 23 1
Julia 3 40 5
I would like to return a dictionary as:
{'Julia':'10', 'John':'1', 'Julia':'5'....}
My code is returning no duplicates as of now.
check this answer on stackoverflow (Creating a dictionary from a csv file?) first you have to read as dictonary and change values according to that, remember that dictionary contains only distinct keys if key already exists it will be replaced by new values on the fly.