Borya-Goldarb commited on
Commit
709cafb
·
verified ·
1 Parent(s): c38ec52

Update pages/comps_data.py

Browse files
Files changed (1) hide show
  1. pages/comps_data.py +14 -12
pages/comps_data.py CHANGED
@@ -9,6 +9,7 @@ from datetime import datetime, timedelta
9
 
10
  def main():
11
  data = {
 
12
  'Address': ['B', 'B', 'B', 'B', 'B',
13
  'B', 'B', 'B'
14
  ],
@@ -150,18 +151,19 @@ def main():
150
  col_3_1, col_3_2, col_3_3 = st.columns([5,1,5])
151
  with col_3_1:
152
  st.write('Additional comps')
153
- st.data_editor(
154
- df5,
155
- column_config={
156
- "Select rows": st.column_config.CheckboxColumn(
157
- "Your favorite?",
158
- help="Select your **favorite** widgets",
159
- default=False,
160
- )
161
- },
162
- # disabled=["widgets"],
163
- hide_index=True,
164
- )
 
165
  with col_3_2:
166
  st.button("Add comps", help="Click to add more comps")
167
  with col_3_3:
 
9
 
10
  def main():
11
  data = {
12
+ "favorite": [True, False, False, True, True, False, False, True],
13
  'Address': ['B', 'B', 'B', 'B', 'B',
14
  'B', 'B', 'B'
15
  ],
 
151
  col_3_1, col_3_2, col_3_3 = st.columns([5,1,5])
152
  with col_3_1:
153
  st.write('Additional comps')
154
+ edited_df = st.data_editor(df5)
155
+ # st.data_editor(
156
+ # df5,
157
+ # column_config={
158
+ # "Select rows": st.column_config.CheckboxColumn(
159
+ # "Your favorite?",
160
+ # help="Select your **favorite** widgets",
161
+ # default=False,
162
+ # )
163
+ # },
164
+ # # disabled=["widgets"],
165
+ # hide_index=True,
166
+ # )
167
  with col_3_2:
168
  st.button("Add comps", help="Click to add more comps")
169
  with col_3_3: