Datasets:
Update mammography.py
Browse files- 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[
|
|
|
|
|
|
|
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)
|