Datasets:
Update annealing.py
Browse files- annealing.py +1 -1
annealing.py
CHANGED
@@ -151,7 +151,7 @@ class Anneal(datasets.GeneratorBasedBuilder):
|
|
151 |
|
152 |
data.loc[:, "formability"] = data.formability.apply(lambda x: int(x) if x not in ("?", "-") else 0)
|
153 |
data.loc[:, "enamelability"] = data.enamelability.apply(lambda x: int(x) if x not in ("?", "-") else 0)
|
154 |
-
data.loc[:, "non_ageing"] = data.formability.apply(lambda x: True if x == "-" else False)
|
155 |
data.loc[:, "bc"] = data.bc.apply(lambda x: True if x == "Y" else False)
|
156 |
data.loc[:, "bf"] = data.bf.apply(lambda x: True if x == "Y" else False)
|
157 |
data.loc[:, "bt"] = data.bt.apply(lambda x: True if x == "Y" else False)
|
|
|
151 |
|
152 |
data.loc[:, "formability"] = data.formability.apply(lambda x: int(x) if x not in ("?", "-") else 0)
|
153 |
data.loc[:, "enamelability"] = data.enamelability.apply(lambda x: int(x) if x not in ("?", "-") else 0)
|
154 |
+
# data.loc[:, "non_ageing"] = data.formability.apply(lambda x: True if x == "-" else False)
|
155 |
data.loc[:, "bc"] = data.bc.apply(lambda x: True if x == "Y" else False)
|
156 |
data.loc[:, "bf"] = data.bf.apply(lambda x: True if x == "Y" else False)
|
157 |
data.loc[:, "bt"] = data.bt.apply(lambda x: True if x == "Y" else False)
|