Spaces:
Sleeping
Sleeping
trying one more time
Browse files
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 |
|