How can I find the dimensions of a matrix in Python?

Posted by PBD10017 on Stack Overflow See other posts from Stack Overflow or by PBD10017
Published on 2012-11-24T09:27:56Z Indexed on 2012/11/24 11:06 UTC
Read the original article Hit count: 179

Filed under:
|

How can I find the dimensions of a matrix in Python. Len(A) returns only one variable.

Edit:

Hi Thanks.

close = dataobj.get_data(timestamps, symbols, closefield)

Is (I assume) generating a matrix of integers (less likely strings). I need to find the size of that matrix, so I can run some tests without having to iterate through all of the elements. As far as the data type goes, I assume it's an array of arrays (or list of lists).

© Stack Overflow or respective owner

Related posts about python

Related posts about matrix