scipy.sparse.dia_matrix.shape

dia_matrix.shape

Get shape of a matrix.