I am working with a large CSV file containing following data:
DataID1234,72.819595,14.407141
...
...
...
I managed to import the CSV file into an array giving this console output:
["DataID123", "73.075584", "12.631215"]
The array is accessible via data[1][1] // [73.07558]
I want to search the array by the dataID (e.g. “DataID1234”) and give back the values contained in column 2.
Question:
-
Is there a way to get this done without a dictionary?
-
How would I set up the dictionary?
Thanks!