mstz commited on
Commit
d30520a
·
1 Parent(s): bf69b71

Upload covertype.py

Browse files
Files changed (1) hide show
  1. covertype.py +2 -1
covertype.py CHANGED
@@ -167,7 +167,8 @@ class Covertype(datasets.GeneratorBasedBuilder):
167
 
168
  def _generate_examples(self, filepath: str):
169
  with gzip.open(filepath) as log:
170
- data = pandas.read_csv(log, header=_BASE_FEATURE_NAMES)
 
171
  data = self.preprocess(data, config=self.config.name)
172
 
173
  for row_id, row in data.iterrows():
 
167
 
168
  def _generate_examples(self, filepath: str):
169
  with gzip.open(filepath) as log:
170
+ data = pandas.read_csv(log, header=None)
171
+ data.columns = _BASE_FEATURE_NAMES
172
  data = self.preprocess(data, config=self.config.name)
173
 
174
  for row_id, row in data.iterrows():