mstz commited on
Commit
f5d5cf9
·
1 Parent(s): cfc8a2f

Upload breast.py

Browse files
Files changed (1) hide show
  1. breast.py +2 -1
breast.py CHANGED
@@ -110,7 +110,8 @@ class Breast(datasets.GeneratorBasedBuilder):
110
  ]
111
 
112
  def _generate_examples(self, filepath: str):
113
- data = pandas.read_csv(filepath, columns=_ORIGINAL_FEATURE_NAMES)
 
114
  data = self.preprocess(data, config=self.config.name)
115
 
116
  for row_id, row in data.iterrows():
 
110
  ]
111
 
112
  def _generate_examples(self, filepath: str):
113
+ data = pandas.read_csv(filepath, header=None)
114
+ data.columns=_ORIGINAL_FEATURE_NAMES
115
  data = self.preprocess(data, config=self.config.name)
116
 
117
  for row_id, row in data.iterrows():