mstz commited on
Commit
d7b3c3b
·
1 Parent(s): fad7314

Upload splice.py

Browse files
Files changed (1) hide show
  1. splice.py +1 -1
splice.py CHANGED
@@ -349,7 +349,7 @@ class Splice(datasets.GeneratorBasedBuilder):
349
  encoding_function = partial(self.encode, feature)
350
  data.loc[:, feature] = data[feature].apply(encoding_function)
351
 
352
- return data[list(features_types_per_config[config].keys())]
353
 
354
  def encode(self, feature, value):
355
  if feature in _ENCODING_DICS:
 
349
  encoding_function = partial(self.encode, feature)
350
  data.loc[:, feature] = data[feature].apply(encoding_function)
351
 
352
+ return data[list(features_types_per_config[self.config.name].keys())]
353
 
354
  def encode(self, feature, value):
355
  if feature in _ENCODING_DICS: