Number of stored values, including explicit zeros.
Deprecated since version 1.11.0: This method will be removed in SciPy 1.13.0. Use X.nnz instead. The axis argument will no longer be supported; please let us know if you still need this functionality.
- axisNone, 0, or 1
Select between the number of values across the whole array, in each column, or in each row.
Number of non-zero entries