docs icon indicating copy to clipboard operation
docs copied to clipboard

Document fields in baked results

Open ghing opened this issue 11 years ago • 7 comments

I realized when we were talking about differences between rows in baked RawResults because of different structures of the input files that we didn't have any documentation for the fields in the baked results. They're obvious for anyone who's looked at the models, but less so from someone just consuming the data.

Writing this will be fast and straightforward, but my one question is about where this should live, on www.openelections.net or on docs.openelections.net and link to it. I'm inclined toward putting it with the docs because that seems more maintainable. But I'm open to other opinions.

ghing avatar Nov 07 '14 22:11 ghing

+1 for docs.openelections.net

dwillis avatar Nov 07 '14 22:11 dwillis

This may be state-specific, bake-specific data. How would you like to organize this?

benlk avatar Mar 05 '17 15:03 benlk

My inclination is to document the fields that aren't state-specific on docs.openelections.net and then have any state-specific stuff in state results repositories.

dwillis avatar Mar 05 '17 15:03 dwillis

That makes sense.

After skimming through the docs, the most-likely-looking place to add this is https://github.com/openelections/docs/blob/master/dataentry.md#instructions, but that's not likely to be someplace where people who are using your data will look for descriptions of the column headers. Is there a better place?

After looking at Florida and Arizona, these columns seem common:

updated_at
id
start_date
end_date
election_type
result_type
special
office
district
name_raw
last_name
first_name
suffix
middle_name
party
jurisdiction
division
votes
votes_type
total_votes
winner
write_in
year

benlk avatar Mar 05 '17 15:03 benlk

I think this would be its own section on the docs site, maybe called "Results" with a subsection called "Common Fields"?

dwillis avatar Mar 05 '17 15:03 dwillis

How do you want to handle writing definitions for http://docs.openelections.net/common-fields/ ?

benlk avatar Mar 07 '17 19:03 benlk

In my haze on Sunday I neglected to mention this

dwillis avatar Mar 07 '17 19:03 dwillis