SciPy

scipy.sparse.bsr_matrix.shape

bsr_matrix.shape

Get shape of a matrix.