Datasets:
Update mushroom.py
Browse files- mushroom.py +1 -1
mushroom.py
CHANGED
@@ -319,7 +319,7 @@ class Mushroom(datasets.GeneratorBasedBuilder):
|
|
319 |
data.loc[:, feature] = data[feature].apply(encoding_function)
|
320 |
data = data.infer_objects()
|
321 |
|
322 |
-
return
|
323 |
|
324 |
def encode(self, feature, value):
|
325 |
if feature in _ENCODING_DICS:
|
|
|
319 |
data.loc[:, feature] = data[feature].apply(encoding_function)
|
320 |
data = data.infer_objects()
|
321 |
|
322 |
+
return data
|
323 |
|
324 |
def encode(self, feature, value):
|
325 |
if feature in _ENCODING_DICS:
|