[Numpy-discussion] hstack

Tony Yu tsyu80@gmail....
Wed Feb 8 10:35:05 CST 2012

On Wed, Feb 8, 2012 at 11:32 AM, Stephanie Cooke

> Hello,
> When I try to use the command hstack, I am given the error message
> "TypeError: hstack() takes exactly 1 argument (2 given)". I have a 9X1
> array (called array) that I would like to concatenate to a 9X2 matrix
> (called matrix), and I try to do this by typing the command
> hstack(array,matrix). I would appreciate any help in getting this to
> work.
> Thanks,
> Stephanie

Try hstack([array, matrix]). The input needs to be put into a single
sequence (here a list, but tuple, etc. would work too).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20120208/cb759645/attachment.html 

More information about the NumPy-Discussion mailing list