I have a list of n strings, and I have a list of n float values. The string has a corresponding value to it in the CSV file. I am needing to add the string as my ‘key’ and the floats as my ‘values’ in a single dictionary.
(the string and float list are the same length)
I was thinking about using a for loop to iterate through the CSV file then simply adding the ‘key’ to the current row of the file. Then the same for the floats in row1. Yet, I keep getting a list index out of range error in the console log.