mstz commited on
Commit
bcd7651
1 Parent(s): b9af923

Upload compas.py

Browse files
Files changed (1) hide show
  1. compas.py +1 -2
compas.py CHANGED
@@ -244,11 +244,10 @@ class Compas(datasets.GeneratorBasedBuilder):
244
  raise ValueError(f"Unknown config: {self.config.name}")
245
 
246
  if self.config.name == "encoding":
247
- data = self.encoding_dicts()
248
  else:
249
  data = pandas.read_csv(filepath)
250
  data = self.preprocess(data, config=self.config.name)
251
-
252
  for row_id, row in data.iterrows():
253
  data_row = dict(row)
254
 
 
244
  raise ValueError(f"Unknown config: {self.config.name}")
245
 
246
  if self.config.name == "encoding":
247
+ data = self.encoding_dics()
248
  else:
249
  data = pandas.read_csv(filepath)
250
  data = self.preprocess(data, config=self.config.name)
 
251
  for row_id, row in data.iterrows():
252
  data_row = dict(row)
253