[SciPy-user] appending rows to an array

Ramon Crehuet rcsqtc at iiqab.csic.es
Wed Oct 19 12:03:35 EDT 2005


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]])

I know I can do this using the tolist method to transform the arrays to 
lists, use append and then transform back to array, but is there a more 
efficient way to do that? I read the manual and found concatenate but I 
can't figure out how to use it...
Thanks in advance,
Ramon






More information about the SciPy-User mailing list