Spaces:
Sleeping
Sleeping
Update pages/market_rent_estimation.py
Browse files
pages/market_rent_estimation.py
CHANGED
|
@@ -56,13 +56,14 @@ def main():
|
|
| 56 |
|
| 57 |
#comps page
|
| 58 |
with tab1:
|
| 59 |
-
filtered_data = reordered_df_properties_filtered[["google_ola", "market_costar", "submarket_costar", 'distance_from_first (km)', "execution_date", "rented_sf", "building_sf", "year_built", "office_rate", "min_clear_height", "max_clear_height", "docks", "drive_ins", "rent_combined", "lat", "long"]]#pd.concat([filtered_data2])
|
| 60 |
# comps_scores = sorted_distances
|
| 61 |
|
| 62 |
# filtered_data.insert(loc=1, column='Similarity score', value=comps_scores)
|
| 63 |
|
| 64 |
# Formatting the DataFrame
|
| 65 |
-
filtered_data['Similarity score'] = ((1 - filtered_data['Similarity score']) * 100).apply(lambda x: f"{x:.2f}")
|
|
|
|
| 66 |
filtered_data['execution_date'] = pd.to_datetime(filtered_data['execution_date']).dt.strftime('%m-%d-%Y')
|
| 67 |
filtered_data['LSF (sf)'] = filtered_data['rented_sf'].round(0).astype(int)
|
| 68 |
filtered_data['RSF (sf)'] = filtered_data['building_sf'].round(0).astype(int)
|
|
|
|
| 56 |
|
| 57 |
#comps page
|
| 58 |
with tab1:
|
| 59 |
+
filtered_data = reordered_df_properties_filtered[["Similarity score", "google_ola", "market_costar", "submarket_costar", 'distance_from_first (km)', "execution_date", "rented_sf", "building_sf", "year_built", "office_rate", "min_clear_height", "max_clear_height", "docks", "drive_ins", "rent_combined", "lat", "long"]]#pd.concat([filtered_data2])
|
| 60 |
# comps_scores = sorted_distances
|
| 61 |
|
| 62 |
# filtered_data.insert(loc=1, column='Similarity score', value=comps_scores)
|
| 63 |
|
| 64 |
# Formatting the DataFrame
|
| 65 |
+
# filtered_data['Similarity score'] = ((1 - filtered_data['Similarity score']) * 100).apply(lambda x: f"{x:.2f}")
|
| 66 |
+
filtered_data['Similarity score'] = (filtered_data['Similarity score'] * 100).apply(lambda x: f"{x:.2f}")
|
| 67 |
filtered_data['execution_date'] = pd.to_datetime(filtered_data['execution_date']).dt.strftime('%m-%d-%Y')
|
| 68 |
filtered_data['LSF (sf)'] = filtered_data['rented_sf'].round(0).astype(int)
|
| 69 |
filtered_data['RSF (sf)'] = filtered_data['building_sf'].round(0).astype(int)
|