def segmentLocation(df, location):
    """
    segments by location

    :param: df: pandas dataframe
    :param location: location string (location_sf)
    :return: dataframe containing segments that have specified location
    """

    return df[(df['location'] == location)]