defundthepolice
defundthepolice copied to clipboard
App: Compare All Counties
What is the Task
Create a new App, that can view all the data we have collected
Why do we want to do this
To get a single view of all the data
How can I get started?
-
Create a new folder in apps called all_counties_compare, follow style of other folders https://github.com/banjtheman/defundthepolice/tree/main/apps
-
Use pandas to create a single data frame to collect all the data, should have a new column called state_county which adds the state and county together e.g VA_Arlington
-
Create a stacked bar chart to view the budget percent for each county Here is example code https://altair-viz.github.io/gallery/stacked_bar_chart_sorted_segments.html
- x axis - percent of budget
- y axis - State county
- color - budget item
-
Add new page to main_st.py https://github.com/banjtheman/defundthepolice/blob/main/main_st.py#L3-L8
-
Leave any questions you have in comments, If you want to work on this, go ahead no need to ask
Definition of Done
Can select this new app, and view the stacked bar chart