Spaces:
Sleeping
Sleeping
Update pages/comps_data.py
Browse files- pages/comps_data.py +28 -2
pages/comps_data.py
CHANGED
|
@@ -13,8 +13,8 @@ import seaborn as sns
|
|
| 13 |
from datetime import datetime, timedelta
|
| 14 |
|
| 15 |
def main():
|
| 16 |
-
|
| 17 |
-
|
| 18 |
|
| 19 |
st.set_page_config(initial_sidebar_state="collapsed", layout="wide")
|
| 20 |
|
|
@@ -131,6 +131,32 @@ def main():
|
|
| 131 |
if option == ":rainbow[On]":
|
| 132 |
col_3_1, col_3_2, col_3_3 = st.columns([5,1,5])
|
| 133 |
with col_3_1:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 134 |
st.write('Additional comps')
|
| 135 |
st.data_editor(
|
| 136 |
df5,
|
|
|
|
| 13 |
from datetime import datetime, timedelta
|
| 14 |
|
| 15 |
def main():
|
| 16 |
+
df6 = pd.read_csv("market_underwriting_pred.csv", encoding='utf-8')
|
| 17 |
+
df6.insert(loc=0, column='Select rows', value=[False]*len(df5))
|
| 18 |
|
| 19 |
st.set_page_config(initial_sidebar_state="collapsed", layout="wide")
|
| 20 |
|
|
|
|
| 131 |
if option == ":rainbow[On]":
|
| 132 |
col_3_1, col_3_2, col_3_3 = st.columns([5,1,5])
|
| 133 |
with col_3_1:
|
| 134 |
+
data = {
|
| 135 |
+
"favorite": [True, False, False, True, True, False, False, True],
|
| 136 |
+
'Address': ['Location_A', 'Location_B', 'Location_C', 'Location_D', 'Location_E',
|
| 137 |
+
'Location_F', 'Location_G', 'Location_H'
|
| 138 |
+
],
|
| 139 |
+
'latitude': np.random.uniform(40.7, 40.8, size=8), # Assuming latitude range between 40.7 and 40.8
|
| 140 |
+
'longitude': np.random.uniform(-74.0, -73.9, size=8), # Assuming longitude range between -74.0 and -73.9
|
| 141 |
+
'Match score': [12, 12, 12, 12, 12, 12, 12, 12],
|
| 142 |
+
'Market': ["M2", "M2", "M2", "M2", "M2", "M2", "M2", "M2"],
|
| 143 |
+
'Sub-market': ["S2", "S2", "S2", "S2", "S2", "S2", "S2", "S2"],
|
| 144 |
+
'Lease Date': ["2024/1/1", "2024/1/1", "2024/1/1", "2024/1/1", "2024/1/1", "2024/1/1", "2024/1/1", "2024/1/1"],
|
| 145 |
+
'LSF': [20000, 30000, 20000, 30000, 20000, 30000, 50000, 35000],
|
| 146 |
+
'RSF': [20000, 30000, 20000, 30000, 20000, 30000, 50000, 35000],
|
| 147 |
+
'Rent (NNN)': [11, 11, 11, 12, 12, 12, 12, 15],
|
| 148 |
+
'Year Built': [2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019],
|
| 149 |
+
'Office %': [20, 20, 20, 20, 20, 20, 20, 20],
|
| 150 |
+
'Clear Height':[19, 18, 19, 18, 17, 19, 19, 18],
|
| 151 |
+
'Doors (drive in / Dock)': [2, 2, 2, 2, 2, 2, 2, 2],
|
| 152 |
+
'Lease Term ': [60, 60, 60, 60, 60, 60, 60, 60],
|
| 153 |
+
'Rent (Gross)': [11, 11, 11, 12, 12, 12, 12, 15],
|
| 154 |
+
'TIs ': [1, 1, 1, 1, 1, 1, 1, 1]
|
| 155 |
+
}
|
| 156 |
+
|
| 157 |
+
# Create DataFrame
|
| 158 |
+
df5 = pd.DataFrame(data)
|
| 159 |
+
df5.insert(loc=0, column='Select rows', value=[False]*len(df5))
|
| 160 |
st.write('Additional comps')
|
| 161 |
st.data_editor(
|
| 162 |
df5,
|