Datasets:
Upload bank.py
Browse files
bank.py
CHANGED
@@ -113,14 +113,11 @@ class Bank(datasets.GeneratorBasedBuilder):
|
|
113 |
]
|
114 |
|
115 |
def _generate_examples(self, filepath: str):
|
116 |
-
if self.
|
117 |
return self.encoding_dictionaries()
|
118 |
|
119 |
-
print(f"reading...")
|
120 |
data = pandas.read_csv(filepath, sep=";")
|
121 |
-
print(f"read dataset w/ {data.shape} shape")
|
122 |
data = self.preprocess(data, config=self.config.name)
|
123 |
-
print(f"now got dataset w/ {data.shape} shape")
|
124 |
|
125 |
for row_id, row in data.iterrows():
|
126 |
data_row = dict(row)
|
|
|
113 |
]
|
114 |
|
115 |
def _generate_examples(self, filepath: str):
|
116 |
+
if self.config.name == "encoding":
|
117 |
return self.encoding_dictionaries()
|
118 |
|
|
|
119 |
data = pandas.read_csv(filepath, sep=";")
|
|
|
120 |
data = self.preprocess(data, config=self.config.name)
|
|
|
121 |
|
122 |
for row_id, row in data.iterrows():
|
123 |
data_row = dict(row)
|