2 Jul 17:58
Add a column to masked array.
Dharhas Pothina <Dharhas.Pothina <at> twdb.state.tx.us>
2009-07-02 15:58:43 GMT
2009-07-02 15:58:43 GMT
Hi, I have a masked array 'data' where data.shape = (1805,4) and another masked array 'a' where a.shape = (1805,) I would like to generate a new masked array with the 'a' as the last column , i.e. the final shape should be (1805,5). I've tried np.hstack which gave an error 'arrays must have same number of dimensions' and ma.hstack just combines both masked arrays into a list. how would I go about doing what I need? thanks - dharhas
RSS Feed