banjtheman / defundthepolice

Defund The Police
Apache License 2.0
21 stars 30 forks source link

App: Compare All Counties #62

Open banjtheman opened 3 years ago

banjtheman commented 3 years ago

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?

  1. Create a new folder in apps called all_counties_compare, follow style of other folders https://github.com/banjtheman/defundthepolice/tree/main/apps

  2. 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

  3. 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

  1. Add new page to main_st.py https://github.com/banjtheman/defundthepolice/blob/main/main_st.py#L3-L8

  2. 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