Spaces:
Sleeping
Sleeping
Update pages/comps_data.py
Browse files- pages/comps_data.py +10 -8
pages/comps_data.py
CHANGED
|
@@ -13,6 +13,9 @@ import seaborn as sns
|
|
| 13 |
from datetime import datetime, timedelta
|
| 14 |
|
| 15 |
def main():
|
|
|
|
|
|
|
|
|
|
| 16 |
st.set_page_config(initial_sidebar_state="collapsed", layout="wide")
|
| 17 |
|
| 18 |
|
|
@@ -128,11 +131,9 @@ def main():
|
|
| 128 |
if option == ":rainbow[On]":
|
| 129 |
col_3_1, col_3_2, col_3_3 = st.columns([5,1,5])
|
| 130 |
with col_3_1:
|
| 131 |
-
|
| 132 |
-
df.insert(loc=0, column='Select rows', value=[False]*len(df))
|
| 133 |
-
|
| 134 |
st.data_editor(
|
| 135 |
-
|
| 136 |
column_config={
|
| 137 |
"favorite": st.column_config.CheckboxColumn(
|
| 138 |
"Your favorite?",
|
|
@@ -145,10 +146,11 @@ def main():
|
|
| 145 |
)
|
| 146 |
with col_3_2:
|
| 147 |
st.button("Add properties")
|
| 148 |
-
with col_3_3:
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
|
|
|
| 152 |
|
| 153 |
|
| 154 |
if __name__ == "__main__":
|
|
|
|
| 13 |
from datetime import datetime, timedelta
|
| 14 |
|
| 15 |
def main():
|
| 16 |
+
df5 = pd.read_csv("market_underwriting_pred.csv", encoding='utf-8')
|
| 17 |
+
df5.insert(loc=0, column='Select rows', value=[False]*len(df5))
|
| 18 |
+
|
| 19 |
st.set_page_config(initial_sidebar_state="collapsed", layout="wide")
|
| 20 |
|
| 21 |
|
|
|
|
| 131 |
if option == ":rainbow[On]":
|
| 132 |
col_3_1, col_3_2, col_3_3 = st.columns([5,1,5])
|
| 133 |
with col_3_1:
|
| 134 |
+
st.subheader('Additional comps')
|
|
|
|
|
|
|
| 135 |
st.data_editor(
|
| 136 |
+
df5,
|
| 137 |
column_config={
|
| 138 |
"favorite": st.column_config.CheckboxColumn(
|
| 139 |
"Your favorite?",
|
|
|
|
| 146 |
)
|
| 147 |
with col_3_2:
|
| 148 |
st.button("Add properties")
|
| 149 |
+
with col_3_3:
|
| 150 |
+
st.subheader('Filter definition')
|
| 151 |
+
# s = st.container(height=120)
|
| 152 |
+
st.write('Comps list:')
|
| 153 |
+
st.write(filtered_data)
|
| 154 |
|
| 155 |
|
| 156 |
if __name__ == "__main__":
|