I would like to subclass numpy ndarray. However, I cannot change the array. Why self = ... does not change the array? Thanks.
Suppose that I have an array defined by: data = np.array([(\'a1v1\', \'a2v1\', \'a3v1\', \'a4v1\', \'a5v1\'),
We\'ve got a set of recarrays of data for individual days - the first attribute is a timestamp and the rest are values.
The following example shows what I want to do: >>> test rec.array([(0, 0, 0), (0, 0, 0), (0, 0, 0), (0, 0, 0), (0, 0, 0), (0, 0, 0),
Suppose I make two recarrays with the same dtype and stack them: >>> import numpy as np >>> dt = [(\'foo\', int), (\'bar\', float)]