I have a csv file with ";" separator where information are look like,
Id;arrVal
0;[[84, 109, 423, 466]]
1;[[242, 192, 822, 594], [242, 640, 818, 911]]
2;[[123, 212, 401, 351]]
I am reading the csv file and want to get the array for specific Id by using following code
df = pd.read_csv("path/to/csv/file.csv", sep=";")
df[df['Id']==1].iloc[0]['arrVal']
It gives me the value [[242, 192, 822, 594], [242, 640, 818, 911]] but as a string. How can I extract as a 2D array?