Closed kuriwaki closed 2 months ago
I resolved the write-in candidates in NJ and OH. Pending the next build.
"I resolved the write-in candidates in NJ and OH. Pending the next build."
These don't seem to be reflected yet in the medsl
on Dropbox right now, but if it's on its way, no worries.
The NJ case is annoying to deal with .. in this example, we basically want to turn the last two rows into WRITEINs. You can see how the second one is missing his middle name.
> open_dataset("medsl") |> filter(state == "NEW JERSEY", county_name == "ESSEX", office == "US HOUSE", district == "010") |> count(office, candidate, party_detailed) |> collect() |> filter(str_detect(candidate, "PAYNE"))
# A tibble: 3 × 4
office candidate party_detailed n
<chr> <chr> <chr> <int>
1 US HOUSE DONALD M PAYNE JR DEMOCRAT 146100
2 US HOUSE DONALD PAYNE JR DEMOCRAT 1
3 US HOUSE DONALD PAYNE JR WRITEIN 1
I linked Kenosha and Maryland to this issue too
Lake and Shasta resolved.
Some notes on the missing candidates:
From our improved classification in #319 I found 14 counties where the issue is: there is no corresponding R/D/L entry in the Baltz et al. data. I took a quick look and all of them look like counties that would be releasable if we just fixed that error in the precinct returns data.
Here are the candidates and the code to reproduce this:
[x] In the NJ and OH states, the candidates should be listed as write-ins on the Reece data (
medsl
).[x] But in the others, it seems like the Baltz data is simply missing the candidate from the record (
returns/by-county
) (I quickly took a few county websites). We can create a mini csv as we did for #39 and merge it in.[x] A similar thing should be done for the 4 Maryland counties in #324. For those, the returns data should be changed to NA and writein == 1.
[x] #83 (see comment there to change baltz)
[x] Michigan: Eaton #276, Mason #277, Washtenaw #99
[x] California: Shasta: no issue filed by Aleksandra; MEDSL cvr missing a state house race
[x] California, Lake: MEDSLcvr missing a state house race
[x] California, Orange: This looks close. No issue filed by Jeff. MEDSL cvr missing party metadata, but also seems slightly more off than Harvard. Shiro will look in to this.
If we can release these, we'd get two new Republican states.. TN/ID.