def _find_neighborhoods_ids(input_list, neighborhoods_df):
    """
    Read in a list of names of neighborhood names. Returns a list of
    neighbhorhood ids

    Args:
        input_list: a list containing the names of the neighborhoods
            in the treatment group.
        neighborhoods_df: a dataframe containing neighborhood names
            and object_id for each neighborhood.

    Returns:
        a list of neighborhood ids corresponding wiht the given names.

    """

    id_list = []
    for i, _ in enumerate(input_list):
        id_list = id_list + \
            [int(neighborhoods_df[neighborhoods_df['S_HOOD'] == input_list[i]]['OBJECTID'])]

    return id_list