Update Mimic4Dataset.py
Browse files- Mimic4Dataset.py +1 -1
Mimic4Dataset.py
CHANGED
@@ -617,7 +617,7 @@ class Mimic4Dataset(datasets.GeneratorBasedBuilder):
|
|
617 |
|
618 |
def _generate_examples_encoded(self, filepath):
|
619 |
df = pd.read_csv(filepath, header=0)
|
620 |
-
for i, row in
|
621 |
yield i, row.to_dict()
|
622 |
|
623 |
|
|
|
617 |
|
618 |
def _generate_examples_encoded(self, filepath):
|
619 |
df = pd.read_csv(filepath, header=0)
|
620 |
+
for i, row in df.iterrows():
|
621 |
yield i, row.to_dict()
|
622 |
|
623 |
|