mstz commited on
Commit
8ae0087
·
1 Parent(s): 7b3e7e2

Upload car.py

Browse files
Files changed (1) hide show
  1. car.py +1 -1
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