Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import seaborn as sns
|
| 3 |
import pandas as pd
|
|
@@ -17,7 +59,7 @@ st.write('---')
|
|
| 17 |
with st.sidebar:
|
| 18 |
st.subheader('Filter Options')
|
| 19 |
threshold = st.slider('Threshold for Total Bill', min_value=0, max_value=100, value=10, step=1)
|
| 20 |
-
day_selector = st.multiselect('Select Day(s)', options=data['day'].unique(), default=data['day'].unique()
|
| 21 |
|
| 22 |
# Filter data
|
| 23 |
filtered_data = data[data['total_bill'] > threshold]
|
|
@@ -40,3 +82,4 @@ else:
|
|
| 40 |
|
| 41 |
st.write('---')
|
| 42 |
|
|
|
|
|
|
| 1 |
+
Hugging Face's logo
|
| 2 |
+
Hugging Face
|
| 3 |
+
Models
|
| 4 |
+
Datasets
|
| 5 |
+
Spaces
|
| 6 |
+
Community
|
| 7 |
+
Docs
|
| 8 |
+
Pricing
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
Spaces:
|
| 13 |
+
|
| 14 |
+
soysouce
|
| 15 |
+
/
|
| 16 |
+
AAU_Business_Data_Sci
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
like
|
| 20 |
+
1
|
| 21 |
+
App
|
| 22 |
+
Files
|
| 23 |
+
Community
|
| 24 |
+
AAU_Business_Data_Sci
|
| 25 |
+
/
|
| 26 |
+
w2_assign_streamlit.py
|
| 27 |
+
|
| 28 |
+
soysouce's picture
|
| 29 |
+
soysouce
|
| 30 |
+
Update w2_assign_streamlit.py
|
| 31 |
+
8b9e4c5
|
| 32 |
+
VERIFIED
|
| 33 |
+
about 18 hours ago
|
| 34 |
+
raw
|
| 35 |
+
|
| 36 |
+
Copy download link
|
| 37 |
+
history
|
| 38 |
+
blame
|
| 39 |
+
contribute
|
| 40 |
+
delete
|
| 41 |
+
|
| 42 |
+
1.49 kB
|
| 43 |
import streamlit as st
|
| 44 |
import seaborn as sns
|
| 45 |
import pandas as pd
|
|
|
|
| 59 |
with st.sidebar:
|
| 60 |
st.subheader('Filter Options')
|
| 61 |
threshold = st.slider('Threshold for Total Bill', min_value=0, max_value=100, value=10, step=1)
|
| 62 |
+
day_selector = st.multiselect('Select Day(s)', options=data['day'].unique(), default=data['day'].unique())
|
| 63 |
|
| 64 |
# Filter data
|
| 65 |
filtered_data = data[data['total_bill'] > threshold]
|
|
|
|
| 82 |
|
| 83 |
st.write('---')
|
| 84 |
|
| 85 |
+
|