getnnz
scipy.sparse.coo_matrix.
- coo_matrix.getnnz(axis=None)
Number of stored values, including explicit zeros.
- Parameters:
- axis : None, 0, or 1
Select between the number of values across the whole array, in each column, or in each row.
Number of stored values, including explicit zeros.
Select between the number of values across the whole array, in each column, or in each row.