(X)
return len(np.count_nonzero(X, axis=0))
Return count of columns which have at least one non-zero value.
Return count of columns which have at least one non-zero value.
Return count of columns which have at least one non - zero value .
def nnz_columns_count(X):
    """Return count of columns which have at least one non-zero value."""
    return len(np.count_nonzero(X, axis=0))
def nnz_columns_count ( X ) : return len ( np . count_nonzero ( X , axis = 0 ) )