Spaces:
Sleeping
Sleeping
Update pages/market_rent_estimation.py
Browse files
pages/market_rent_estimation.py
CHANGED
|
@@ -106,7 +106,7 @@ def main():
|
|
| 106 |
filtered_data.insert(loc=1, column='Similarity score', value=comps_scores)
|
| 107 |
|
| 108 |
# Formatting the DataFrame
|
| 109 |
-
filtered_data['Similarity score'] = ((1 - filtered_data['Similarity score']) * 100).
|
| 110 |
filtered_data['execution_date'] = pd.to_datetime(filtered_data['execution_date']).dt.strftime('%m-%d-%Y')
|
| 111 |
filtered_data['LSF (sf)'] = filtered_data['rented_sf'].round(0).astype(int)
|
| 112 |
filtered_data['RSF (sf)'] = filtered_data['building_sf'].round(0).astype(int)
|
|
|
|
| 106 |
filtered_data.insert(loc=1, column='Similarity score', value=comps_scores)
|
| 107 |
|
| 108 |
# Formatting the DataFrame
|
| 109 |
+
filtered_data['Similarity score'] = ((1 - filtered_data['Similarity score']) * 100).apply(lambda x: f"{x:.2f}")
|
| 110 |
filtered_data['execution_date'] = pd.to_datetime(filtered_data['execution_date']).dt.strftime('%m-%d-%Y')
|
| 111 |
filtered_data['LSF (sf)'] = filtered_data['rented_sf'].round(0).astype(int)
|
| 112 |
filtered_data['RSF (sf)'] = filtered_data['building_sf'].round(0).astype(int)
|