Borya-Goldarb commited on
Commit
89034bb
·
verified ·
1 Parent(s): b28d6dd

Update pages/comps_data.py

Browse files
Files changed (1) hide show
  1. pages/comps_data.py +3 -3
pages/comps_data.py CHANGED
@@ -48,7 +48,7 @@ def main():
48
  col_1_1, col_1_2 = st.columns([2, 1])
49
  with col_1_1:
50
  st.write('Comps list:')
51
- st.write(filtered_data)
52
  with col_1_2:
53
  # Create a map object
54
  m = folium.Map(width=500, height=440, location=(df_data['latitude'].mean(), df_data['longitude'].mean()), zoom_start=10)
@@ -155,8 +155,8 @@ def main():
155
  with col_3_2:
156
  if st.button("Add comps", help="Click to add more comps"):
157
  filtered_data1 = pd.concat([filtered_data, test.drop(columns=['favorite'])])
158
- filtered_data.update(test.drop(columns=['favorite']))
159
- # st.write(test)
160
  with col_3_3:
161
  st.write('Filter definition')
162
 
 
48
  col_1_1, col_1_2 = st.columns([2, 1])
49
  with col_1_1:
50
  st.write('Comps list:')
51
+ display_df = st.table(df)
52
  with col_1_2:
53
  # Create a map object
54
  m = folium.Map(width=500, height=440, location=(df_data['latitude'].mean(), df_data['longitude'].mean()), zoom_start=10)
 
155
  with col_3_2:
156
  if st.button("Add comps", help="Click to add more comps"):
157
  filtered_data1 = pd.concat([filtered_data, test.drop(columns=['favorite'])])
158
+ # filtered_data.update(test.drop(columns=['favorite']))
159
+ display_df.table(filtered_data1)
160
  with col_3_3:
161
  st.write('Filter definition')
162