mstz commited on
Commit
cb06d11
·
1 Parent(s): 686c9e8

Update pima.py

Browse files
Files changed (1) hide show
  1. pima.py +1 -0
pima.py CHANGED
@@ -64,6 +64,7 @@ class Pima(datasets.GeneratorBasedBuilder):
64
 
65
  def _generate_examples(self, filepath: str):
66
  data = pandas.read_csv(filepath)
 
67
 
68
  for row_id, row in data.iterrows():
69
  data_row = dict(row)
 
64
 
65
  def _generate_examples(self, filepath: str):
66
  data = pandas.read_csv(filepath)
67
+ data = data.rename(columns={"class": "diabetes"})
68
 
69
  for row_id, row in data.iterrows():
70
  data_row = dict(row)