Datasets:
Upload monks.py
Browse files
monks.py
CHANGED
@@ -173,6 +173,7 @@ class Monk(datasets.GeneratorBasedBuilder):
|
|
173 |
|
174 |
for feature in _ENCODING_DICS:
|
175 |
print(feature)
|
|
|
176 |
encoding_function = partial(self.encode, feature)
|
177 |
data.loc[:, feature] = data[feature].apply(encoding_function)
|
178 |
|
|
|
173 |
|
174 |
for feature in _ENCODING_DICS:
|
175 |
print(feature)
|
176 |
+
print(data[feature].unique())
|
177 |
encoding_function = partial(self.encode, feature)
|
178 |
data.loc[:, feature] = data[feature].apply(encoding_function)
|
179 |
|