mstz commited on
Commit
8a96703
1 Parent(s): ef8b25f

Update mammography.py

Browse files
Files changed (1) hide show
  1. mammography.py +4 -1
mammography.py CHANGED
@@ -105,7 +105,10 @@ class Mammography(datasets.GeneratorBasedBuilder):
105
  data.columns = _ORIGINAL_FEATURE_NAMES
106
 
107
  data.drop("rads", axis="columns", inplace=True)
108
- data = data[(data.age != "?") & (data.shape != "?") & (data.margin != "?") & (data.density != "?")]
 
 
 
109
  data = data.infer_objects()
110
  for feature in _ENCODING_DICS:
111
  print(feature)
 
105
  data.columns = _ORIGINAL_FEATURE_NAMES
106
 
107
  data.drop("rads", axis="columns", inplace=True)
108
+ data = data[data.age != "?"]
109
+ data = data[data.shape != "?"]
110
+ data = data[data.margin != "?"]
111
+ data = data[data.density != "?"]
112
  data = data.infer_objects()
113
  for feature in _ENCODING_DICS:
114
  print(feature)