def clean_data(data, field_map):
    """ Clean up the data by removing columns that aren't relevant and renaming the remaining ones to match what we
        need.

        Args:
            data: data to clean
            field_map: mapping of all relevant columns
    """
    # toss out any columns from the csv that aren't in the fieldMap parameter
    data = data[list(field_map.keys())]

    # rename columns as specified in fieldMap
    data = data.rename(columns=field_map)
    return data