Borya-Goldarb commited on
Commit
c1f3593
·
verified ·
1 Parent(s): fe5d71e

Update pages/comps_data.py

Browse files
Files changed (1) hide show
  1. 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
- # if option == ":rainbow[On]":
129
-
130
- col_3_1, col_3_2 = st.columns(2)
131
- with col_3_1:
132
- df = pd.read_csv("market_underwriting_pred.csv", encoding='utf-8')
133
- df.insert(loc=0, column='Select rows', value=[False]*len(df))
134
-
135
- st.data_editor(
136
- df,
137
- column_config={
138
- "favorite": st.column_config.CheckboxColumn(
139
- "Your favorite?",
140
- help="Select your **favorite** widgets",
141
- default=False,
142
- )
143
- },
144
- disabled=["widgets"],
145
- hide_index=True,
146
- )
147
- # st.data_editor(
148
- # df_data_checkbox,
149
- # column_config={
150
- # "Select rows": st.column_config.CheckboxColumn(
151
- # "Your favorite?",
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__":