Artificial Intelligence, Machine Learning, Deep Learning, Image Classification, Heartbeat.
label_list = [] for img in selected_image_list: label_tuple = cancer_labels.loc[cancer_labels['id'] == img.split('.')[0]] id_list.append(label_tuple['id'].values[0]) label_list.append(label_tuple['label'].values[0]) selected_image_labels['id'] = id_list selected_image_labels['label'] = label_list #