Let's say I define a record array
>>> y=np.zeros(4,dtype=('a4,int32,float64'))
and then I proceed to fill up the 4 records available. Now I get more data, something like
>>> c=('a',7,'24.5')
and I want to add this record to y
. I can't figure out a clean way to do it. The best I have seen in np.concatenate()
, but that would require turning c
into an record array in and of itself. Is there any simple way to tack my tuple c
onto y
? This seems like it should be really straightforward and widely documented. Apologies if it is. I haven't been able to find it.