scipy.sparse.csr_matrix.

eliminate_zeros#

csr_matrix.eliminate_zeros()[来源]#

从数组/矩阵中移除零条目

这是一个就地操作。