scipy.sparse.csr_matrix.

prune#

csr_matrix.prune()[source]#

删除所有非零元素后的空隙。