def extract_city_by_code(df, glc_city_code, glc_state_code):
    """Returns a dataframe containing records for the city and state codes."""

    return df.filter(
        (df.City_Code == glc_city_code) & (df.State_Code == glc_state_code)
    )