I have a large csv file with columns that encode the name and index of the array below. eg:
time, dataset1[0], dataset1[1], dataset1[2], dataset2[0], dataset2[1], dataset2[2]\n 0, 43, 35, 29, 21, 59, 39\n 1, 21, 59, 39, 43, 35, 29\n You get the idea (obviously there is far more data in the arrays).
Any ideas how can I easily parse/strip this into an efficient dataframes?
[EDIT]
Ideally I'm after a structure like this:
time dataset1 dataset2 0 0 [43,35,29] [21,59,39] 1 1 [21,59,39] [43,35,29] where the index's have been stripped from the labels and turned into nparray indices.