Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 2023 tax bills #41

Merged
merged 8 commits into from
Aug 5, 2024

Conversation

erhla
Copy link
Collaborator

@erhla erhla commented Jul 11, 2024

No description provided.

@erhla erhla requested a review from dfsnow as a code owner July 11, 2024 17:57
@erhla erhla changed the base branch from master to dfsnow/add-2023-data July 11, 2024 17:57
@erhla
Copy link
Collaborator Author

erhla commented Jul 11, 2024

Oops. Here's the 2023 tax bills to add to your branch.

Copy link
Member

@dfsnow dfsnow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@erhla Can you fix the linting errors on sample_tax_bills_detail.R?

@dfsnow dfsnow changed the title add 2023 tax bills Add 2023 tax bills Jul 22, 2024
@dfsnow
Copy link
Member

dfsnow commented Jul 22, 2024

@erhla There's also the data-raw/sample_tax_bills/sample_tax_bills_summary.csv which needs to be updated manually (by manually looking at the exemption details on each bill). Lmk if you wanna do it, otherwise we can merge this and I'll grab it later.

Copy link
Member

@dfsnow dfsnow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines 6 to 22
sum_path <- "data-raw/sample_tax_bills/sample_tax_bills_summary.csv"


# add pins/year/class after updating detail
key_cols <- readr::read_csv(
"data-raw/sample_tax_bills/sample_tax_bills_detail.csv"
) %>%
distinct(year, pin, class) %>%
mutate(class = as.character(class)) %>%
filter(year == max(year))

readr::read_csv(
sum_path,
col_types = cols(pin = "c", tax_code = "c", class = "c")
) %>%
bind_rows(key_cols) %>%
write_csv(sum_path)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (blocking): I get the intent but let's not add this programmatically. It's fine if you wanna use it to help jumpstart the manual work on each bill though.

Also, somehow it's mangling the CSV, see below.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

issue (blocking): Looks like some of the 0000 PINs get mangled and converted to scientific notation here. No bueno.

This reverts commit d0e31ea.
Capture manual reviewed fields from tax bills via terminal entry
@dfsnow dfsnow self-requested a review August 5, 2024 17:19
@dfsnow dfsnow merged commit b313541 into ccao-data:dfsnow/add-2023-data Aug 5, 2024
1 of 8 checks passed
dfsnow added a commit that referenced this pull request Aug 6, 2024
* Add updated agency workbooks and code

* Add new CPI PDF

* Add 2023 equalizers

* Bump DB version in DESCRIPTION and DB

* Add 2023 tax bills (#41)

* add 2023 tax bills

* lint

* styler?

* attempt 2 to style

* add rpm tif

* update data

* Revert "update data"

This reverts commit d0e31ea.

* fixing tax bill summary / adding input procedure

Capture manual reviewed fields from tax bills via terminal entry

* Drop extraneous readline code

* Swap tabulapdf for deprecated tabulizer dependency

* Update TIF agency names output

* Add 2023 TIF report data

* Fix pct formatting for pct_burden, reduction_pct

* Fix TIF records with missing agency number

* Update README figures and links

* Update sample summary with additional bill

* Update test thresholds

* Bump package version

* Cleanup pkgdown manifest

---------

Co-authored-by: Eric Langowski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants