biom.table.Table.nonzero_counts¶
- Table.nonzero_counts(axis, binary=True)¶
Get nonzero summaries about an axis
- Parameters:
- axis{‘sample’, ‘observation’, ‘whole’}
The axis on which to count nonzero entries
- binarybool, optional
Defaults to
True
. IfTrue
, return number of nonzero entries. IfFalse
, sum the values of the entries.
- Returns:
- numpy.array
Counts in index order to the axis