Datasets:
Upload student_performance.py
Browse files- student_performance.py +1 -1
student_performance.py
CHANGED
@@ -169,7 +169,7 @@ class StudentPerformance(datasets.GeneratorBasedBuilder):
|
|
169 |
return _ENCODING_DICS[feature][value]
|
170 |
|
171 |
def encoding_dics(self):
|
172 |
-
data = [pandas.
|
173 |
for feature, d in _ENCODING_DICS.items()]
|
174 |
data = pandas.concat(data, axis="rows")
|
175 |
|
|
|
169 |
return _ENCODING_DICS[feature][value]
|
170 |
|
171 |
def encoding_dics(self):
|
172 |
+
data = [pandas.DataFrame([(feature, original, encoded) for original, encoded in d.items()])
|
173 |
for feature, d in _ENCODING_DICS.items()]
|
174 |
data = pandas.concat(data, axis="rows")
|
175 |
|