Datasets:
Update car.py
Browse files
car.py
CHANGED
@@ -155,8 +155,8 @@ class Car(datasets.GeneratorBasedBuilder):
|
|
155 |
data[feature] = data[feature].apply(encoding_function)
|
156 |
|
157 |
if config == "car_binary":
|
158 |
-
print("mapping...\n\n")
|
159 |
data["acceptability_level"] = data["acceptability_level"].apply(lambda x: 0 if x == 0 else 1)
|
|
|
160 |
|
161 |
print(data.acceptability_level.unique())
|
162 |
return data
|
|
|
155 |
data[feature] = data[feature].apply(encoding_function)
|
156 |
|
157 |
if config == "car_binary":
|
|
|
158 |
data["acceptability_level"] = data["acceptability_level"].apply(lambda x: 0 if x == 0 else 1)
|
159 |
+
print("mapping...\n\n")
|
160 |
|
161 |
print(data.acceptability_level.unique())
|
162 |
return data
|