Spaces:
Sleeping
Sleeping
Update pages/comps_data.py
Browse files- pages/comps_data.py +7 -5
pages/comps_data.py
CHANGED
|
@@ -8,6 +8,9 @@ import seaborn as sns
|
|
| 8 |
from datetime import datetime, timedelta
|
| 9 |
|
| 10 |
def main():
|
|
|
|
|
|
|
|
|
|
| 11 |
data = {
|
| 12 |
"favorite": [True, False, False, True, True, False, False, True],
|
| 13 |
'Address': ['B', 'B', 'B', 'B', 'B',
|
|
@@ -33,11 +36,8 @@ def main():
|
|
| 33 |
|
| 34 |
# Create DataFrame
|
| 35 |
df5 = pd.DataFrame(data)
|
| 36 |
-
df5.insert(loc=0, column='Select rows', value=[False]*len(df5))
|
| 37 |
|
| 38 |
-
st.set_page_config(initial_sidebar_state="collapsed", layout="wide")
|
| 39 |
-
|
| 40 |
-
|
| 41 |
def add_checkbox_column(df):
|
| 42 |
checkbox_col = st.multiselect("Select rows", df.index.tolist(), [])
|
| 43 |
df.insert(0, "Checkbox", False)
|
|
@@ -136,11 +136,13 @@ def main():
|
|
| 136 |
|
| 137 |
# Render the map
|
| 138 |
folium_static(m)
|
| 139 |
-
col_2_1, col_2_2 = st.columns([
|
| 140 |
with col_2_1:
|
| 141 |
option = st.radio("Add comps:", (":rainbow[On]", ":rainbow[Off]"), horizontal=True, index=1)
|
| 142 |
|
| 143 |
with col_2_2:
|
|
|
|
|
|
|
| 144 |
if st.button("Rexy"):
|
| 145 |
st.switch_page("pages/comps_data.py")
|
| 146 |
|
|
|
|
| 8 |
from datetime import datetime, timedelta
|
| 9 |
|
| 10 |
def main():
|
| 11 |
+
st.set_page_config(initial_sidebar_state="collapsed", layout="wide")
|
| 12 |
+
|
| 13 |
+
|
| 14 |
data = {
|
| 15 |
"favorite": [True, False, False, True, True, False, False, True],
|
| 16 |
'Address': ['B', 'B', 'B', 'B', 'B',
|
|
|
|
| 36 |
|
| 37 |
# Create DataFrame
|
| 38 |
df5 = pd.DataFrame(data)
|
| 39 |
+
# df5.insert(loc=0, column='Select rows', value=[False]*len(df5))
|
| 40 |
|
|
|
|
|
|
|
|
|
|
| 41 |
def add_checkbox_column(df):
|
| 42 |
checkbox_col = st.multiselect("Select rows", df.index.tolist(), [])
|
| 43 |
df.insert(0, "Checkbox", False)
|
|
|
|
| 136 |
|
| 137 |
# Render the map
|
| 138 |
folium_static(m)
|
| 139 |
+
col_2_1, col_2_2, col_2_3 = st.columns([4, 4, 1])
|
| 140 |
with col_2_1:
|
| 141 |
option = st.radio("Add comps:", (":rainbow[On]", ":rainbow[Off]"), horizontal=True, index=1)
|
| 142 |
|
| 143 |
with col_2_2:
|
| 144 |
+
st.button("Predictions")
|
| 145 |
+
with col_2_3:
|
| 146 |
if st.button("Rexy"):
|
| 147 |
st.switch_page("pages/comps_data.py")
|
| 148 |
|