def get_location_from_shapefile_record_name(shapefile_record_names_df, record_name):
    """
    Get location for the shapefile record name given.

    Args:
        shapefile_record_names_df (pandas DataFrame) : dataframe of shapefile record names and the associated locations
        location (str)                               : name of the location

    Returns:
        str: Location for the shapefile record name as listed in the shapefiles used.
    """
    return shapefile_record_names_df.loc[shapefile_record_names_df['record_name'] == record_name].location.values[0]