scipy.sparse.dia_matrix.

scipy.sparse.dia_matrix.ndim

property dia_matrix.ndim