[Numpy-discussion] AttributeError with shape command

2012-03-26 Thread Stephanie Cooke
Hello, I am new to numpy. When I try to use the command array.shape, I get the following error: AttributeError: 'list' object has no attribute 'shape' Is anyone familiar with this type of error? Thanks ___ NumPy-Discussion mailing list NumPy-Discussio

[Numpy-discussion] How to Extract the Number of Rows and Columns in a Matrix

2012-03-26 Thread Stephanie Cooke
Hello, I would like to extract the number of rows and columns of a matrix individually. The shape command outputs the rows and columns together, but are there commands that will separately give the rows and separately give the columns? Thanks ___ NumPy-

[Numpy-discussion] hstack

2012-02-08 Thread 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