Spaces:
Sleeping
Sleeping
Commit
·
67f8e33
1
Parent(s):
aed9cd2
feat: generated files
Browse files
app.py
CHANGED
@@ -82,6 +82,7 @@ if page == "":
|
|
82 |
st.markdown("## Welcome to the Customer Insights App")
|
83 |
st.write("Use the dropdown menu to navigate between the different sections.")
|
84 |
|
|
|
85 |
elif page == "Customer Analysis":
|
86 |
st.title("Customer Analysis")
|
87 |
st.markdown("Use the tools below to explore your customer data.")
|
@@ -124,9 +125,9 @@ elif page == "Customer Analysis":
|
|
124 |
|
125 |
for m in combined_top:
|
126 |
if m in all_manufacturers.index and m in sales_data.index:
|
127 |
-
values.append(all_manufacturers.loc[m, customer_data.index[0]])
|
128 |
manufacturers.append(get_supplier_name(m))
|
129 |
-
amounts.append(sales_data.loc[m, customer_euros.index[0]])
|
130 |
|
131 |
st.write(f"### Results for top {len(manufacturers)} manufacturers (balanced by units % and total sales):")
|
132 |
for manufacturer, value, amount in zip(manufacturers, values, amounts):
|
|
|
82 |
st.markdown("## Welcome to the Customer Insights App")
|
83 |
st.write("Use the dropdown menu to navigate between the different sections.")
|
84 |
|
85 |
+
# Customer Analysis Page
|
86 |
elif page == "Customer Analysis":
|
87 |
st.title("Customer Analysis")
|
88 |
st.markdown("Use the tools below to explore your customer data.")
|
|
|
125 |
|
126 |
for m in combined_top:
|
127 |
if m in all_manufacturers.index and m in sales_data.index:
|
128 |
+
values.append(float(all_manufacturers.loc[m, customer_data.index[0]]))
|
129 |
manufacturers.append(get_supplier_name(m))
|
130 |
+
amounts.append(float(sales_data.loc[m, customer_euros.index[0]]))
|
131 |
|
132 |
st.write(f"### Results for top {len(manufacturers)} manufacturers (balanced by units % and total sales):")
|
133 |
for manufacturer, value, amount in zip(manufacturers, values, amounts):
|