Datasets:
Upload student_performance.py
Browse files- student_performance.py +1 -1
student_performance.py
CHANGED
@@ -173,7 +173,7 @@ class StudentPerformance(datasets.GeneratorBasedBuilder):
|
|
173 |
data = [pandas.DataFrame([(feature, original, encoded) for original, encoded in d.items()])
|
174 |
for feature, d in _ENCODING_DICS.items()]
|
175 |
print("done...\n\n\n")
|
176 |
-
data = pandas.concat(data, axis="rows")
|
177 |
data.columns = ["feature", "original_value", "encoded_value"]
|
178 |
print("done...\n\n\n")
|
179 |
print(data)
|
|
|
173 |
data = [pandas.DataFrame([(feature, original, encoded) for original, encoded in d.items()])
|
174 |
for feature, d in _ENCODING_DICS.items()]
|
175 |
print("done...\n\n\n")
|
176 |
+
data = pandas.concat(data, axis="rows").reset_index()
|
177 |
data.columns = ["feature", "original_value", "encoded_value"]
|
178 |
print("done...\n\n\n")
|
179 |
print(data)
|