Datasets:
Update yeast.py
Browse files
yeast.py
CHANGED
|
@@ -220,6 +220,7 @@ class Yeast(datasets.GeneratorBasedBuilder):
|
|
| 220 |
for feature in _ENCODING_DICS:
|
| 221 |
encoding_function = partial(self.encode, feature)
|
| 222 |
data.loc[:, feature] = data[feature].apply(encoding_function)
|
|
|
|
| 223 |
data["erl"] = data["erl"].apply(lambda x: True if x == 1 else False)
|
| 224 |
data = data.astype({"erl": "bool"})
|
| 225 |
|
|
|
|
| 220 |
for feature in _ENCODING_DICS:
|
| 221 |
encoding_function = partial(self.encode, feature)
|
| 222 |
data.loc[:, feature] = data[feature].apply(encoding_function)
|
| 223 |
+
|
| 224 |
data["erl"] = data["erl"].apply(lambda x: True if x == 1 else False)
|
| 225 |
data = data.astype({"erl": "bool"})
|
| 226 |
|