Spaces:
Build error
Build error
Update pages/market_rent_estimation.py
Browse files
pages/market_rent_estimation.py
CHANGED
|
@@ -23,6 +23,12 @@ def main():
|
|
| 23 |
|
| 24 |
distances_matrix = np.load('atlanta_matrix.npy')
|
| 25 |
df_properties = pd.read_csv("atlanta_data_new.csv", encoding='utf-8')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
|
| 27 |
# user's filter for property size is a range in percentage around picked property
|
| 28 |
min_size = (100 + st.session_state['min_property_size_perc']) / 100 * st.session_state['building_sf']
|
|
|
|
| 23 |
|
| 24 |
distances_matrix = np.load('atlanta_matrix.npy')
|
| 25 |
df_properties = pd.read_csv("atlanta_data_new.csv", encoding='utf-8')
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
# update the values of date and price of the historical lease to today date and nan value for price
|
| 29 |
+
row_index = (df_properties[df_properties['google_ola'] == st.session_state['user_select_value']].index)[0]
|
| 30 |
+
df_properties.loc[row_index, ["months_since", "rent_combined"]] = [0, -1]
|
| 31 |
+
|
| 32 |
|
| 33 |
# user's filter for property size is a range in percentage around picked property
|
| 34 |
min_size = (100 + st.session_state['min_property_size_perc']) / 100 * st.session_state['building_sf']
|