Borya-Goldarb commited on
Commit
6f004b4
·
verified ·
1 Parent(s): 68b555f

Update pages/market_rent_estimation.py

Browse files
Files changed (1) hide show
  1. pages/market_rent_estimation.py +1 -1
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).round(2)
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)