Datasets:
Upload compas.py
Browse files
compas.py
CHANGED
@@ -279,6 +279,7 @@ class Compas(datasets.GeneratorBasedBuilder):
|
|
279 |
data.drop("in_custody", axis="columns", inplace=True)
|
280 |
data.drop("out_custody", axis="columns", inplace=True)
|
281 |
|
|
|
282 |
data = data[["sex",
|
283 |
"age",
|
284 |
"race",
|
@@ -290,7 +291,6 @@ class Compas(datasets.GeneratorBasedBuilder):
|
|
290 |
"days_b_screening_arrest",
|
291 |
"is_recid",
|
292 |
"r_days_from_arrest",
|
293 |
-
"days_in_jail_before_recidividity",
|
294 |
"days_in_custody",
|
295 |
"is_violent_recid",
|
296 |
"v_decile_score",
|
|
|
279 |
data.drop("in_custody", axis="columns", inplace=True)
|
280 |
data.drop("out_custody", axis="columns", inplace=True)
|
281 |
|
282 |
+
print(data.columns)
|
283 |
data = data[["sex",
|
284 |
"age",
|
285 |
"race",
|
|
|
291 |
"days_b_screening_arrest",
|
292 |
"is_recid",
|
293 |
"r_days_from_arrest",
|
|
|
294 |
"days_in_custody",
|
295 |
"is_violent_recid",
|
296 |
"v_decile_score",
|