[SciPy-user] appending rows to an array
Joris De Ridder
joris at ster.kuleuven.ac.be
Wed Oct 19 12:12:39 EDT 2005
Hi Ramon,
I guess this is what you are looking for:
>>> x = array([[1,2,3], [4,5,6]])
>>> y = array([7,8,9])
>>> concatenate((x,[y]))
array([[1, 2, 3],
[4, 5, 6],
[7, 8, 9]])
Cheers,
Joris
Ramon Crehuet wrote:
>Dear all,
> I need to append rows to an array (many times). For example:
>array([[1,2,3], [4,5,6]]) and array([7,8,9])
>should give:
>array([[1,2,3], [4,5,6],[7,8,9]])
>
>
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
More information about the SciPy-User
mailing list