Datasets:
Upload magic.py
Browse files
magic.py
CHANGED
@@ -87,7 +87,8 @@ class Magic(datasets.GeneratorBasedBuilder):
|
|
87 |
]
|
88 |
|
89 |
def _generate_examples(self, filepath: str):
|
90 |
-
data = pandas.read_csv(filepath)
|
|
|
91 |
|
92 |
for row_id, row in data.iterrows():
|
93 |
data_row = dict(row)
|
|
|
87 |
]
|
88 |
|
89 |
def _generate_examples(self, filepath: str):
|
90 |
+
data = pandas.read_csv(filepath, header=None)
|
91 |
+
data.columns = _BASE_FEATURE_NAMES
|
92 |
|
93 |
for row_id, row in data.iterrows():
|
94 |
data_row = dict(row)
|