Spaces:
Sleeping
Sleeping
Update pages/comps_data.py
Browse files- pages/comps_data.py +24 -36
pages/comps_data.py
CHANGED
|
@@ -125,42 +125,30 @@ def main():
|
|
| 125 |
# Add the second button on the right side
|
| 126 |
with col_2_3:
|
| 127 |
st.button("Right Button")
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
# help="Select your **favorite** widgets",
|
| 153 |
-
# default=False,
|
| 154 |
-
# )
|
| 155 |
-
# },
|
| 156 |
-
# # disabled=[df_data.columns],
|
| 157 |
-
# hide_index=True,
|
| 158 |
-
# )
|
| 159 |
-
|
| 160 |
-
with col_3_2:
|
| 161 |
-
c2 = st.container(height=120)
|
| 162 |
-
c2.write('Comps list:')
|
| 163 |
-
c2.write(filtered_data)
|
| 164 |
|
| 165 |
|
| 166 |
if __name__ == "__main__":
|
|
|
|
| 125 |
# Add the second button on the right side
|
| 126 |
with col_2_3:
|
| 127 |
st.button("Right Button")
|
| 128 |
+
if option == ":rainbow[On]":
|
| 129 |
+
col_3_1, col_3_2, col_3_2 = st.columns(3)
|
| 130 |
+
with col_3_1:
|
| 131 |
+
df = pd.read_csv("market_underwriting_pred.csv", encoding='utf-8')
|
| 132 |
+
df.insert(loc=0, column='Select rows', value=[False]*len(df))
|
| 133 |
+
|
| 134 |
+
st.data_editor(
|
| 135 |
+
df,
|
| 136 |
+
column_config={
|
| 137 |
+
"favorite": st.column_config.CheckboxColumn(
|
| 138 |
+
"Your favorite?",
|
| 139 |
+
help="Select your **favorite** widgets",
|
| 140 |
+
default=False,
|
| 141 |
+
)
|
| 142 |
+
},
|
| 143 |
+
disabled=["widgets"],
|
| 144 |
+
hide_index=True,
|
| 145 |
+
)
|
| 146 |
+
with col_3_2:
|
| 147 |
+
st.button("Add properties")
|
| 148 |
+
with col_3_3:
|
| 149 |
+
c2 = st.container(height=120)
|
| 150 |
+
c2.write('Comps list:')
|
| 151 |
+
c2.write(filtered_data)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 152 |
|
| 153 |
|
| 154 |
if __name__ == "__main__":
|