Converting nested lists of data into multidimensional Numpy arrays
问题 In the code below I am building data up in a nested list. After the for loop what I would like is to cast it into a multidimensional Numpy array as neatly as possible. However, when I do the array conversion on it, it only seems to convert the outer list into an array. Even worse when I continue downward I wind up with dataPoints as shape (100L,) ...so an array of lists where each list is my data (obviously I wanted a (100,3) ). I have tried fooling with numpy.asanyarray() also but I can't