def remove_duplicates_from_image_name_data(data):
    """remove duplicates from this data.

    Parameters
    ==========
    data: pd.DataFrame
        data filtered for one image_name

    Returns
    =======
    For each `user_name` and `image_id` found in `data` return only the data
    for the first found classification_id. There *should* only be one
    classification_id per user_name and image_id, but sometimes the queue
    presented the same image_id more than once to the same users. This removes
    any later in time classification_ids per user_name and image_id.
    """

    c_ids = []

    def process_user_group(g):
        c_ids.append(g[g.created_at == g.created_at.min()
                       ].classification_id.min())

    data.groupby(['image_id', 'user_name'],
                 sort=False).apply(process_user_group)
    return data.set_index('classification_id').loc[set(c_ids)].reset_index()