mstz commited on
Commit
f08c9a0
1 Parent(s): 4e6c55b

Upload heart_failure.py

Browse files
Files changed (1) hide show
  1. heart_failure.py +1 -1
heart_failure.py CHANGED
@@ -85,7 +85,7 @@ class HeartFailure(datasets.GeneratorBasedBuilder):
85
  ]
86
 
87
  def _generate_examples(self, filepath: str):
88
- if config == "death":
89
  data = pandas.read_csv(filepath)
90
  data = self.preprocess(data, config=self.config.name)
91
 
 
85
  ]
86
 
87
  def _generate_examples(self, filepath: str):
88
+ if self.config.name == "death":
89
  data = pandas.read_csv(filepath)
90
  data = self.preprocess(data, config=self.config.name)
91