Datasets:
Upload nbfi.py
Browse files
nbfi.py
CHANGED
@@ -237,6 +237,12 @@ class NBFI(datasets.GeneratorBasedBuilder):
|
|
237 |
data = data[data.Registration_Days != "x"]
|
238 |
data = data[data.ID_Days != "x"]
|
239 |
|
|
|
|
|
|
|
|
|
|
|
|
|
240 |
data.columns = _BASE_FEATURE_NAMES
|
241 |
|
242 |
data["education_level"] = data["education_level"].apply(lambda x: _EDUCATION_ENCODING[x])
|
@@ -258,10 +264,7 @@ class NBFI(datasets.GeneratorBasedBuilder):
|
|
258 |
"nr_children": "int8"
|
259 |
})
|
260 |
|
261 |
-
|
262 |
-
print(len(features_types_per_config[config].keys()))
|
263 |
-
for f, ft in zip(data.columns, features_types_per_config[config].keys()):
|
264 |
-
print(f, ft)
|
265 |
|
266 |
return data[list(features_types_per_config[config].keys())]
|
267 |
|
|
|
237 |
data = data[data.Registration_Days != "x"]
|
238 |
data = data[data.ID_Days != "x"]
|
239 |
|
240 |
+
print(len(data.columns))
|
241 |
+
print(len(_BASE_FEATURE_NAMES))
|
242 |
+
print(len(features_types_per_config[config].keys()))
|
243 |
+
for f, ft, fb in zip(data.columns, features_types_per_config[config].keys(), _BASE_FEATURE_NAMES):
|
244 |
+
print(f, ft, fb)
|
245 |
+
|
246 |
data.columns = _BASE_FEATURE_NAMES
|
247 |
|
248 |
data["education_level"] = data["education_level"].apply(lambda x: _EDUCATION_ENCODING[x])
|
|
|
264 |
"nr_children": "int8"
|
265 |
})
|
266 |
|
267 |
+
|
|
|
|
|
|
|
268 |
|
269 |
return data[list(features_types_per_config[config].keys())]
|
270 |
|