newsdev / elex

A wrapper for the AP v2 Elections API.
Other
170 stars 53 forks source link

Document and/or resolve JSON vs. CSV output #341

Open stucka opened 5 years ago

stucka commented 5 years ago

Some fields appear in JSON or CSV output but not the other.

Some data is formatted differently, such as "percents" going from 0 to 1 vs. 0 to 100.

I've got partial documentation started here: https://github.com/PalmBeachPost/election-results-parser/commits/master/fielddescriptions.xlsx

It's easy enough to make that a CSV and clean that up and include in both projects, if that's your desire.

If you're going to change the output of one to match the other, you'd break stuff depending on it -- which can be fixed and hopefully would be detected in pre-election testing.

stucka commented 5 years ago

On a related note, if'n y'all wanted to take that documentation over, I'd love you to be the canonical resource I'd link to from election-results-parser. =)