Spaces:
Sleeping
Sleeping
Update pages/comps_data.py
Browse files- pages/comps_data.py +27 -29
pages/comps_data.py
CHANGED
|
@@ -8,8 +8,32 @@ import seaborn as sns
|
|
| 8 |
from datetime import datetime, timedelta
|
| 9 |
|
| 10 |
def main():
|
| 11 |
-
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
|
| 14 |
st.set_page_config(initial_sidebar_state="collapsed", layout="wide")
|
| 15 |
|
|
@@ -126,37 +150,11 @@ def main():
|
|
| 126 |
if option == ":rainbow[On]":
|
| 127 |
col_3_1, col_3_2, col_3_3 = st.columns([5,1,5])
|
| 128 |
with col_3_1:
|
| 129 |
-
data = {
|
| 130 |
-
"favorite": [True, False, False, True, True, False, False, True],
|
| 131 |
-
'Address': ['Location_A', 'Location_B', 'Location_C', 'Location_D', 'Location_E',
|
| 132 |
-
'Location_F', 'Location_G', 'Location_H'
|
| 133 |
-
],
|
| 134 |
-
'latitude': np.random.uniform(40.7, 40.8, size=8), # Assuming latitude range between 40.7 and 40.8
|
| 135 |
-
'longitude': np.random.uniform(-74.0, -73.9, size=8), # Assuming longitude range between -74.0 and -73.9
|
| 136 |
-
'Match score': [12, 12, 12, 12, 12, 12, 12, 12],
|
| 137 |
-
'Market': ["M2", "M2", "M2", "M2", "M2", "M2", "M2", "M2"],
|
| 138 |
-
'Sub-market': ["S2", "S2", "S2", "S2", "S2", "S2", "S2", "S2"],
|
| 139 |
-
'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"],
|
| 140 |
-
'LSF': [20000, 30000, 20000, 30000, 20000, 30000, 50000, 35000],
|
| 141 |
-
'RSF': [20000, 30000, 20000, 30000, 20000, 30000, 50000, 35000],
|
| 142 |
-
'Rent (NNN)': [11, 11, 11, 12, 12, 12, 12, 15],
|
| 143 |
-
'Year Built': [2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019],
|
| 144 |
-
'Office %': [20, 20, 20, 20, 20, 20, 20, 20],
|
| 145 |
-
'Clear Height':[19, 18, 19, 18, 17, 19, 19, 18],
|
| 146 |
-
'Doors (drive in / Dock)': [2, 2, 2, 2, 2, 2, 2, 2],
|
| 147 |
-
'Lease Term ': [60, 60, 60, 60, 60, 60, 60, 60],
|
| 148 |
-
'Rent (Gross)': [11, 11, 11, 12, 12, 12, 12, 15],
|
| 149 |
-
'TIs ': [1, 1, 1, 1, 1, 1, 1, 1]
|
| 150 |
-
}
|
| 151 |
-
|
| 152 |
-
# Create DataFrame
|
| 153 |
-
df5 = pd.DataFrame(data)
|
| 154 |
-
df5.insert(loc=0, column='Select rows', value=[False]*len(df5))
|
| 155 |
st.write('Additional comps')
|
| 156 |
st.data_editor(
|
| 157 |
df5,
|
| 158 |
column_config={
|
| 159 |
-
"
|
| 160 |
"Your favorite?",
|
| 161 |
help="Select your **favorite** widgets",
|
| 162 |
default=False,
|
|
|
|
| 8 |
from datetime import datetime, timedelta
|
| 9 |
|
| 10 |
def main():
|
| 11 |
+
data = {
|
| 12 |
+
"favorite": [True, False, False, True, True, False, False, True],
|
| 13 |
+
'Address': ['B', 'B', 'B', 'B', 'B',
|
| 14 |
+
'B', 'B', 'B'
|
| 15 |
+
],
|
| 16 |
+
'latitude': np.random.uniform(40.7, 40.8, size=8), # Assuming latitude range between 40.7 and 40.8
|
| 17 |
+
'longitude': np.random.uniform(-74.0, -73.9, size=8), # Assuming longitude range between -74.0 and -73.9
|
| 18 |
+
'Match score': [12, 12, 12, 12, 12, 12, 12, 12],
|
| 19 |
+
'Market': ["M2", "M2", "M2", "M2", "M2", "M2", "M2", "M2"],
|
| 20 |
+
'Sub-market': ["S2", "S2", "S2", "S2", "S2", "S2", "S2", "S2"],
|
| 21 |
+
'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"],
|
| 22 |
+
'LSF': [20000, 30000, 20000, 30000, 20000, 30000, 50000, 35000],
|
| 23 |
+
'RSF': [20000, 30000, 20000, 30000, 20000, 30000, 50000, 35000],
|
| 24 |
+
'Rent (NNN)': [11, 11, 11, 12, 12, 12, 12, 15],
|
| 25 |
+
'Year Built': [2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019],
|
| 26 |
+
'Office %': [20, 20, 20, 20, 20, 20, 20, 20],
|
| 27 |
+
'Clear Height':[19, 18, 19, 18, 17, 19, 19, 18],
|
| 28 |
+
'Doors (drive in / Dock)': [2, 2, 2, 2, 2, 2, 2, 2],
|
| 29 |
+
'Lease Term ': [60, 60, 60, 60, 60, 60, 60, 60],
|
| 30 |
+
'Rent (Gross)': [11, 11, 11, 12, 12, 12, 12, 15],
|
| 31 |
+
'TIs ': [1, 1, 1, 1, 1, 1, 1, 1]
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
# Create DataFrame
|
| 35 |
+
df5 = pd.DataFrame(data)
|
| 36 |
+
df5.insert(loc=0, column='Select rows', value=[False]*len(df5))
|
| 37 |
|
| 38 |
st.set_page_config(initial_sidebar_state="collapsed", layout="wide")
|
| 39 |
|
|
|
|
| 150 |
if option == ":rainbow[On]":
|
| 151 |
col_3_1, col_3_2, col_3_3 = st.columns([5,1,5])
|
| 152 |
with col_3_1:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
st.write('Additional comps')
|
| 154 |
st.data_editor(
|
| 155 |
df5,
|
| 156 |
column_config={
|
| 157 |
+
"Select rows": st.column_config.CheckboxColumn(
|
| 158 |
"Your favorite?",
|
| 159 |
help="Select your **favorite** widgets",
|
| 160 |
default=False,
|