[Tutor] inserting a vector into an array - numpy Q
we should see several ways to do this. One way is with reshape: http://www.scipy.org/Numpy_Example_List_With_Doc#reshape.
we should see several ways to do this. One way is with reshape: http://www.scipy.org/Numpy_Example_List_With_Doc#reshape.
and returns > numpy object arrays, where the elements of the object arrays are > themselves 1d numpy arrays. I don't think there is any other way to do > it. In your example, the 'ragged' array would be a 1d numpy array with > dtype='O'...
I wrapped a c++ code which need accept numpy.ndarray as argument. > Here numpy.version='1.0rc1'. > And to the best of my knowledge, numpy.ndarray's c type is PyArrayObject. > >replace the indicated with the name of NumPy's python type object for ndarray.
The data is just x,y data where x = datetime objects from the datetime > module. y are just floats. It is bundled in a numpy array.return np.array(X_hr). How should X_hr look like, example? To me it looks like it is overly complicated (but that might be me). Greets Sander.