alkzar90 commited on
Commit
bddbc3c
·
1 Parent(s): 8b7ba21

Fix pandas subset series

Browse files
Files changed (1) hide show
  1. NIH-Chest-X-ray-dataset.py +1 -1
NIH-Chest-X-ray-dataset.py CHANGED
@@ -156,7 +156,7 @@ class XChest(datasets.GeneratorBasedBuilder):
156
  #"labels": ["Mass", "Hernia"]
157
  #"labels": [5, 14]
158
  #"labels": "Mass"
159
- "labels": label_csv[label_csv['Image Index'] == image_id, 'Finding labels'].str.split('|')[0]
160
  #"multi-labels": list(map(int, [_LABEL2IDX[x] for x in ["Mass", "Hernia"]))
161
  }
162
 
 
156
  #"labels": ["Mass", "Hernia"]
157
  #"labels": [5, 14]
158
  #"labels": "Mass"
159
+ "labels": label_csv[label_csv['Image Index'] == image_id]['Finding Labels'].values[0].split('|')[0]
160
  #"multi-labels": list(map(int, [_LABEL2IDX[x] for x in ["Mass", "Hernia"]))
161
  }
162