scipy.sparse.csr_array.prune#

csr_array.prune()[source]#

Remove empty space after all non-zero elements.