Datasets:
Upload nbfi.py
Browse files
nbfi.py
CHANGED
@@ -223,6 +223,8 @@ class NBFI(datasets.GeneratorBasedBuilder):
|
|
223 |
|
224 |
print(data["owns_a_car"].apply(bool).shape, data.shape)
|
225 |
data["owns_a_car"] = data["owns_a_car"].apply(bool)
|
|
|
|
|
226 |
data.iloc[:, "owns_a_bike"] = data["owns_a_bike"].apply(bool)
|
227 |
data.iloc[:, "has_an_active_loan"] = data["has_an_active_loan"].apply(bool)
|
228 |
data.iloc[:, "owns_a_house"] = data["owns_a_house"].apply(bool)
|
|
|
223 |
|
224 |
print(data["owns_a_car"].apply(bool).shape, data.shape)
|
225 |
data["owns_a_car"] = data["owns_a_car"].apply(bool)
|
226 |
+
print(data.dtypes["owns_a_car"])
|
227 |
+
print(data["owns_a_car"])
|
228 |
data.iloc[:, "owns_a_bike"] = data["owns_a_bike"].apply(bool)
|
229 |
data.iloc[:, "has_an_active_loan"] = data["has_an_active_loan"].apply(bool)
|
230 |
data.iloc[:, "owns_a_house"] = data["owns_a_house"].apply(bool)
|