Datasets:
Tasks:
Tabular Classification
Languages:
English
Upload p53.py
Browse files
p53.py
CHANGED
|
@@ -85,7 +85,7 @@ class P53(datasets.GeneratorBasedBuilder):
|
|
| 85 |
encoding_function = partial(self.encode, feature)
|
| 86 |
data.loc[:, feature] = data[feature].apply(encoding_function)
|
| 87 |
|
| 88 |
-
for feature in data.
|
| 89 |
if feature == "class":
|
| 90 |
break
|
| 91 |
data[data[feature] == "?", feature] = data[feature].mean()
|
|
|
|
| 85 |
encoding_function = partial(self.encode, feature)
|
| 86 |
data.loc[:, feature] = data[feature].apply(encoding_function)
|
| 87 |
|
| 88 |
+
for feature in data.columns:
|
| 89 |
if feature == "class":
|
| 90 |
break
|
| 91 |
data[data[feature] == "?", feature] = data[feature].mean()
|