scipy.sparse.csc_matrix.

scipy.sparse.csc_matrix.ndim

property csc_matrix.ndim