Datasets:
Upload heart_failure.py
Browse files- 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 |
|