jfiel5 commited on
Commit
7cd2e8a
·
verified ·
1 Parent(s): a3c77e0

trying one more time

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,7 +19,7 @@ st.text("The URL for this app is: https://huggingface.co/spaces/445final/final2.
19
 
20
  df = pd.read_csv('State_Employee_Pay.csv')
21
 
22
- df_copy = df.copy
23
  df['Period Pay Rate'] = df['Period Pay Rate'].str.replace(",", "")
24
  df['YTD Gross'] = df['YTD Gross'].str.replace(",", "")
25
  df['Period Pay Rate'] = df['Period Pay Rate'].astype(int)
@@ -110,7 +110,7 @@ box = (
110
  y=alt.Y("YTD Gross:Q", title="Salary Distribution"),
111
  color=alt.value("#4C78A8")
112
  )
113
- .transform_filter(select_bar)
114
  .properties(width=120, height=800)
115
  )
116
 
 
19
 
20
  df = pd.read_csv('State_Employee_Pay.csv')
21
 
22
+ df_copy = df.copy()
23
  df['Period Pay Rate'] = df['Period Pay Rate'].str.replace(",", "")
24
  df['YTD Gross'] = df['YTD Gross'].str.replace(",", "")
25
  df['Period Pay Rate'] = df['Period Pay Rate'].astype(int)
 
110
  y=alt.Y("YTD Gross:Q", title="Salary Distribution"),
111
  color=alt.value("#4C78A8")
112
  )
113
+ .transform_filter(alt.expr.if_(select_bar,select_bar,False))
114
  .properties(width=120, height=800)
115
  )
116