def remove_dup(dataframe, cam_id_name):
    """
    Drop rows that have duplicated camera id (keep the first duplicated camera id data)
    :param dataframe: a pandas dataframe
    :return: a pandas dataframe after removing duplicates
    """
    dataframe.drop_duplicates(subset=cam_id_name, inplace=True)
    return dataframe