Spaces:
Sleeping
Sleeping
fschwartzer
commited on
Commit
•
192d701
1
Parent(s):
f9024bb
Update app.py
Browse files
app.py
CHANGED
@@ -153,11 +153,11 @@ with st.sidebar:
|
|
153 |
st.markdown(title_html, unsafe_allow_html=True)
|
154 |
|
155 |
# Add a dropdown for filtering "Fonte"
|
156 |
-
selected_fonte = st.selectbox('Finalidade', data['Fonte'].unique())
|
157 |
data = data[data['Fonte'] == selected_fonte]
|
158 |
|
159 |
# Add a dropdown for filtering "Tipo"
|
160 |
-
selected_tipo = st.selectbox('Tipo de imóvel', data['Tipo'].unique())
|
161 |
data_tipo = data[data['Tipo'] == selected_tipo]
|
162 |
|
163 |
custom_address = st.text_input('Informe o endereço', custom_address_initial)
|
|
|
153 |
st.markdown(title_html, unsafe_allow_html=True)
|
154 |
|
155 |
# Add a dropdown for filtering "Fonte"
|
156 |
+
selected_fonte = st.selectbox('Finalidade', data['Fonte'].unique(), index=data['Fonte'].unique().tolist().index('Venda'))
|
157 |
data = data[data['Fonte'] == selected_fonte]
|
158 |
|
159 |
# Add a dropdown for filtering "Tipo"
|
160 |
+
selected_tipo = st.selectbox('Tipo de imóvel', data['Tipo'].unique(), index=data['Tipo'].unique().tolist().index('Terreno'))
|
161 |
data_tipo = data[data['Tipo'] == selected_tipo]
|
162 |
|
163 |
custom_address = st.text_input('Informe o endereço', custom_address_initial)
|