def children(persons, households):
    """
    Indicates the presence of children in the household (0, 1).

    """
    min_age = persons.local.groupby(
        'household_id')['age'].min().reindex(households.index).fillna(0)
    return (min_age < 18).astype(int)