skbio.table.Table.nonzero#

Table.nonzero()[source]#

Yields locations of nonzero elements within the data matrix

Returns:
generator

Yields (observation_id, sample_id) for each nonzero element