mstz commited on
Commit
ff648f2
·
1 Parent(s): d20de33

Upload student_performance.py

Browse files
Files changed (1) hide show
  1. student_performance.py +1 -0
student_performance.py CHANGED
@@ -174,6 +174,7 @@ class StudentPerformance(datasets.GeneratorBasedBuilder):
174
  for feature, d in _ENCODING_DICS.items()]
175
  print("done...\n\n\n")
176
  data = pandas.concat(data, axis="rows").reset_index()
 
177
  print(data)
178
  print(data.dtypes)
179
  data.columns = ["feature", "original_value", "encoded_value"]
 
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.drop("index", axis="columns", inplace=True)
178
  print(data)
179
  print(data.dtypes)
180
  data.columns = ["feature", "original_value", "encoded_value"]