Spaces:
Sleeping
Sleeping
Update pages/comps_data.py
Browse files- pages/comps_data.py +7 -24
pages/comps_data.py
CHANGED
|
@@ -37,8 +37,8 @@ def main():
|
|
| 37 |
df_data = pd.DataFrame(data)
|
| 38 |
|
| 39 |
|
| 40 |
-
df_data_checkbox = df_data.copy()
|
| 41 |
-
df_data_checkbox.insert(loc=0, column='Select rows', value=[False]*len(df_data))
|
| 42 |
|
| 43 |
|
| 44 |
filtered_data2 = df_data[['Address', 'Market', 'Sub-market', 'Lease Date', 'LSF', 'RSF', 'Rent (NNN)', 'Year Built', 'Office %', 'Clear Height', 'Doors (drive in / Dock)', 'Lease Term ', 'Rent (Gross)']]
|
|
@@ -119,6 +119,8 @@ def main():
|
|
| 119 |
'Address': ['B', 'B', 'B', 'B', 'B',
|
| 120 |
'B', 'B', 'B'
|
| 121 |
],
|
|
|
|
|
|
|
| 122 |
'Match score': [12, 12, 12, 12, 12, 12, 12, 12],
|
| 123 |
'Market': ["M2", "M2", "M2", "M2", "M2", "M2", "M2", "M2"],
|
| 124 |
'Sub-market': ["S2", "S2", "S2", "S2", "S2", "S2", "S2", "S2"],
|
|
@@ -148,33 +150,14 @@ def main():
|
|
| 148 |
default=False,
|
| 149 |
)
|
| 150 |
},
|
| 151 |
-
disabled=['Address','Match score','Market','Sub-market','Lease Date','LSF',
|
| 152 |
'RSF','Rent (NNN)','Year Built','Office %','Clear Height','Doors (drive in / Dock)','Lease Term ','Rent (Gross)','TIs '],
|
| 153 |
hide_index=True,
|
| 154 |
)
|
| 155 |
st.write(test)
|
| 156 |
-
# data_df = pd.DataFrame(
|
| 157 |
-
# {
|
| 158 |
-
# "widgets": ["st.selectbox", "st.number_input", "st.text_area", "st.button"],
|
| 159 |
-
# "favorite": [True, False, False, True],
|
| 160 |
-
# }
|
| 161 |
-
# )
|
| 162 |
-
|
| 163 |
-
# test = st.data_editor(
|
| 164 |
-
# data_df,
|
| 165 |
-
# column_config={
|
| 166 |
-
# "favorite": st.column_config.CheckboxColumn(
|
| 167 |
-
# "Your favorite?",
|
| 168 |
-
# help="Select your **favorite** widgets",
|
| 169 |
-
# default=False,
|
| 170 |
-
# )
|
| 171 |
-
# },
|
| 172 |
-
# disabled=["widgets"],
|
| 173 |
-
# hide_index=True,
|
| 174 |
-
# )
|
| 175 |
-
|
| 176 |
with col_3_2:
|
| 177 |
-
|
|
|
|
| 178 |
with col_3_3:
|
| 179 |
st.write('Filter definition')
|
| 180 |
|
|
|
|
| 37 |
df_data = pd.DataFrame(data)
|
| 38 |
|
| 39 |
|
| 40 |
+
# df_data_checkbox = df_data.copy()
|
| 41 |
+
# df_data_checkbox.insert(loc=0, column='Select rows', value=[False]*len(df_data))
|
| 42 |
|
| 43 |
|
| 44 |
filtered_data2 = df_data[['Address', 'Market', 'Sub-market', 'Lease Date', 'LSF', 'RSF', 'Rent (NNN)', 'Year Built', 'Office %', 'Clear Height', 'Doors (drive in / Dock)', 'Lease Term ', 'Rent (Gross)']]
|
|
|
|
| 119 |
'Address': ['B', 'B', 'B', 'B', 'B',
|
| 120 |
'B', 'B', 'B'
|
| 121 |
],
|
| 122 |
+
'latitude': [40.7]*8, # Assuming latitude range between 40.7 and 40.8
|
| 123 |
+
'longitude': [-74.0]*8, # Assuming longitude range between -74.0 and -73.9
|
| 124 |
'Match score': [12, 12, 12, 12, 12, 12, 12, 12],
|
| 125 |
'Market': ["M2", "M2", "M2", "M2", "M2", "M2", "M2", "M2"],
|
| 126 |
'Sub-market': ["S2", "S2", "S2", "S2", "S2", "S2", "S2", "S2"],
|
|
|
|
| 150 |
default=False,
|
| 151 |
)
|
| 152 |
},
|
| 153 |
+
disabled=['Address','latitude','longitude','Match score','Market','Sub-market','Lease Date','LSF',
|
| 154 |
'RSF','Rent (NNN)','Year Built','Office %','Clear Height','Doors (drive in / Dock)','Lease Term ','Rent (Gross)','TIs '],
|
| 155 |
hide_index=True,
|
| 156 |
)
|
| 157 |
st.write(test)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 158 |
with col_3_2:
|
| 159 |
+
if st.button("Add comps", help="Click to add more comps")
|
| 160 |
+
filtered_data = pd.concat([filtered_data, test])
|
| 161 |
with col_3_3:
|
| 162 |
st.write('Filter definition')
|
| 163 |
|