I have a CSV file, having two columns: "id" and "quantity". The file has a header with the two columns mentioned (id and quantity), and from the second row on the values.
For ex, the file would look like this:
id, quantity
1234,100
2345,200
3456,300
4567,400
I want to create a Python dict from the csv, which reads the CSV above in a dictionary, so that I can then later easily check if a specific id is in the dictionary, and if it is there, what is the value (quantity).
Anyone knows how to do that?