Spaces:
Sleeping
Sleeping
GMARTINEZMILLA
commited on
Commit
•
ca9aa30
1
Parent(s):
56f6289
feat: updated website
Browse files
app.py
CHANGED
@@ -243,13 +243,13 @@ elif page == "Customer Analysis":
|
|
243 |
st.title("Customer Analysis")
|
244 |
st.markdown("Use the tools below to explore your customer data.")
|
245 |
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
|
254 |
if st.button("Calcular"):
|
255 |
if customer_code:
|
|
|
243 |
st.title("Customer Analysis")
|
244 |
st.markdown("Use the tools below to explore your customer data.")
|
245 |
|
246 |
+
# Combine text input and dropdown into a single searchable selectbox
|
247 |
+
customer_code = st.selectbox(
|
248 |
+
"Search and Select Customer Code",
|
249 |
+
df['CLIENTE'].unique(), # All customer codes
|
250 |
+
format_func=lambda x: str(x), # Ensures the values are displayed as strings
|
251 |
+
help="Start typing to search for a specific customer code"
|
252 |
+
)
|
253 |
|
254 |
if st.button("Calcular"):
|
255 |
if customer_code:
|