Closed alyssadai closed 3 weeks ago
Hey @surchs, thanks for helping to tackle this issue!
I've updated the iss description with more details of the total variants of graphs needed, and where you can find the necessary question/state info. Let me know if I missed anything!
So the good news is: serialization works nicely. The bad news is: loading the serialized object into memory takes around 45 seconds. We'll have to see how often the dashboard will actually do that.
Per question (
subquestion="all"
), we need 6 variations of graphs:threshold=None
(showing all endorsement/response levels)threshold=DEFAULT_QUESTION["outcome"]
(thresholding responses at "3+")state=None
), we need 4 plots:threshold=None
(showing all endorsement/response levels)threshold=DEFAULT_QUESTION["outcome"]
(thresholding responses at "3+")threshold=None
ANDstratify=True
(stratify bar graph by party affiliation)threshold=DEFAULT_QUESTION["outcome"]
ANDstratify=True
List of states can be obtained from one of the following:
state
column ofDATA_DICTIONARIES["state_abbreviations.tsv"]
state
column ofSURVEY_DATA["samplesizes_state.tsv"]
List of questions can be obtained from:
question
column ofDATA_DICTIONARIES["question_dictionary.tsv"]
Where should the figures live?
Maybe under code/assets/, and the script can live in code/?