SciPy

scipy.sparse.csr_matrix.trunc

csr_matrix.trunc()[source]

Element-wise trunc.

See numpy.trunc for more information.