SciPy

scipy.sparse.coo_matrix.getmaxprint

coo_matrix.getmaxprint()[source]

Maximum number of elements to display when printed.