(X)
return np.unique(X.nonzero()[0])
Return row indices which have at least one non-zero column value.
Return row indices which have at least one non-zero column value.
Return row indices which have at least one non - zero column value .
def nnz_rows_ix(X):
    """Return row indices which have at least one non-zero column value."""
    return np.unique(X.nonzero()[0])
def nnz_rows_ix ( X ) : return np . unique ( X . nonzero ( ) [ 0 ] )