SciPy

scipy.sparse.csr_matrix.getmaxprint

csr_matrix.getmaxprint()[source]

Maximum number of elements to display when printed.