Datasets:
Upload spect.py
Browse files
spect.py
CHANGED
@@ -142,7 +142,7 @@ class Spect(datasets.GeneratorBasedBuilder):
|
|
142 |
|
143 |
def _generate_examples(self, filepath: str):
|
144 |
data = pandas.read_csv(filepath, header=None)
|
145 |
-
data.columns =
|
146 |
print(data.columns)
|
147 |
|
148 |
for row_id, row in data.iterrows():
|
|
|
142 |
|
143 |
def _generate_examples(self, filepath: str):
|
144 |
data = pandas.read_csv(filepath, header=None)
|
145 |
+
data.columns = list(features_types_per_config[self.config.name])
|
146 |
print(data.columns)
|
147 |
|
148 |
for row_id, row in data.iterrows():
|