Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreFCruz committed Jun 24, 2024
1 parent 3644afc commit 5614d6a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 17 deletions.
28 changes: 14 additions & 14 deletions folktexts/acs/acs_columns.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,20 +492,6 @@
value_map=lambda x: f"{x / 100:.1%}",
)

# HINS2: Health Insurance Coverage through Private Company
acs_health_ins_2_col = ColumnToText(
"HINS2",
short_description="acquired health insurance directly from an insurance company",
use_value_map_only=True,
value_map={
1: "Person has purchased insurance directly from an insurance company",
2: (
"Person has not purchased insurance directly from an insurance "
"company (is either uninsured or insured through another source)",
)
},
)

# GCL: Grandparent Living with Grandchildren
acs_gcl_col = ColumnToText(
"GCL",
Expand Down Expand Up @@ -537,6 +523,20 @@
# missing_value_fill="N/A (not a worker, or worker who worked at home)",
)

# HINS2: Health Insurance Coverage through Private Company
acs_health_ins_2_col = ColumnToText(
"HINS2",
short_description="acquired health insurance directly from an insurance company",
use_value_map_only=True,
value_map={
1: "Person has purchased insurance directly from an insurance company",
2: (
"Person has not purchased insurance directly from an insurance "
"company (is either uninsured or insured through another source)",
)
},
)

# HINS2: Health Insurance Coverage through Private Company (Thresholded)
acs_health_ins_2_qa = MultipleChoiceQA(
column=acs_health_insurance_threshold.apply_to_column_name("HINS2"),
Expand Down
2 changes: 1 addition & 1 deletion folktexts/acs/acs_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def make_from_task(
return cls(
data=parsed_data,
full_acs_data=full_acs_data,
task=task,
task=task_obj,
seed=seed,
**kwargs,
)
Expand Down
1 change: 0 additions & 1 deletion folktexts/acs/acs_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
from __future__ import annotations

from dataclasses import asdict, dataclass
from functools import reduce

import folktables
from folktables import BasicProblem
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ skip_install = true
deps =
flake8>=7.0
flake8-pyproject
commands = flake8 {posargs:.}
commands = flake8 {posargs:folktexts tests}
[testenv:type]
description = run type checks
Expand Down

0 comments on commit 5614d6a

Please sign in to comment.