jfiel5 commited on
Commit
df56c69
·
verified ·
1 Parent(s): 6c1a2f0
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -43,7 +43,7 @@ selected_division = st.selectbox('Agency Division:',
43
  options=agency_division_list,
44
  index=0)
45
 
46
- # horizontal bar chart
47
 
48
  def division_positions(selected_division):
49
  df_db = df1[df1['Agency Division'] == selected_division]
@@ -61,15 +61,15 @@ def division_positions(selected_division):
61
  'meanYTDGross:Q', format='$,.0f', title='Avg YTD Gross')]
62
  ).properties(title=f'Employee Count by Position in: {selected_division}',
63
  height=alt.Step(20)).interactive()
64
- # return chart_bar
65
 
66
 
67
  if selected_division:
68
  final_chart = division_positions(selected_division)
69
  st.altair_chart(final_chart, use_container_width=True)
70
 
71
- # st.text('Overall Future Edits: Figure out what to do with positions with 1 employee (if anything), Decide whether to use transportation or corrections data, Re-capitalize agency departments')
72
- # st.text('Chart A Future Edits: Order bars by mean YTD Gross, Make all position titles readable, add title')
73
 
74
 
75
 
 
43
  options=agency_division_list,
44
  index=0)
45
 
46
+ horizontal bar chart
47
 
48
  def division_positions(selected_division):
49
  df_db = df1[df1['Agency Division'] == selected_division]
 
61
  'meanYTDGross:Q', format='$,.0f', title='Avg YTD Gross')]
62
  ).properties(title=f'Employee Count by Position in: {selected_division}',
63
  height=alt.Step(20)).interactive()
64
+ return chart_bar
65
 
66
 
67
  if selected_division:
68
  final_chart = division_positions(selected_division)
69
  st.altair_chart(final_chart, use_container_width=True)
70
 
71
+ st.text('Overall Future Edits: Figure out what to do with positions with 1 employee (if anything), Decide whether to use transportation or corrections data, Re-capitalize agency departments')
72
+ st.text('Chart A Future Edits: Order bars by mean YTD Gross, Make all position titles readable, add title')
73
 
74
 
75