Datasets:
Upload car.py
Browse files
car.py
CHANGED
@@ -138,7 +138,7 @@ class Car(datasets.GeneratorBasedBuilder):
|
|
138 |
data.loc[:, feature] = data[feature].apply(encoding_function)
|
139 |
|
140 |
if config == "car_binary":
|
141 |
-
data.loc[:, "class"] = data["class"].apply(lambda x: if x == 0 else 1)
|
142 |
|
143 |
|
144 |
return data
|
|
|
138 |
data.loc[:, feature] = data[feature].apply(encoding_function)
|
139 |
|
140 |
if config == "car_binary":
|
141 |
+
data.loc[:, "class"] = data["class"].apply(lambda x: x if x == 0 else 1)
|
142 |
|
143 |
|
144 |
return data
|