SciPy

scipy.sparse.csc_matrix.shape

property csc_matrix.shape

Get shape of a matrix.