Spaces:
Sleeping
Sleeping
Commit
·
43107a1
1
Parent(s):
2148f2d
feat: updated website
Browse files
app.py
CHANGED
@@ -380,7 +380,7 @@ elif page == "Customer Analysis":
|
|
380 |
# Filter out manufacturers that are not present in both datasets
|
381 |
combined_top = [m for m in combined_top if m in all_manufacturers.index and m in sales_data_filtered.index]
|
382 |
|
383 |
-
st.write(f"Number of combined top manufacturers: {len(combined_top)}")
|
384 |
|
385 |
if combined_top:
|
386 |
# Create a DataFrame with combined data for these top manufacturers
|
@@ -406,7 +406,7 @@ elif page == "Customer Analysis":
|
|
406 |
amounts = manufacturers_to_show['sales'].tolist()
|
407 |
manufacturers = [get_supplier_name(m) for m in manufacturers_to_show.index]
|
408 |
|
409 |
-
st.write(f"### Results for top {len(manufacturers)} manufacturers:")
|
410 |
for manufacturer, value, amount in zip(manufacturers, values, amounts):
|
411 |
st.write(f"{manufacturer} = {value:.2f}% of units, €{amount:.2f} total sales")
|
412 |
|
|
|
380 |
# Filter out manufacturers that are not present in both datasets
|
381 |
combined_top = [m for m in combined_top if m in all_manufacturers.index and m in sales_data_filtered.index]
|
382 |
|
383 |
+
# st.write(f"Number of combined top manufacturers: {len(combined_top)}")
|
384 |
|
385 |
if combined_top:
|
386 |
# Create a DataFrame with combined data for these top manufacturers
|
|
|
406 |
amounts = manufacturers_to_show['sales'].tolist()
|
407 |
manufacturers = [get_supplier_name(m) for m in manufacturers_to_show.index]
|
408 |
|
409 |
+
# st.write(f"### Results for top {len(manufacturers)} manufacturers:")
|
410 |
for manufacturer, value, amount in zip(manufacturers, values, amounts):
|
411 |
st.write(f"{manufacturer} = {value:.2f}% of units, €{amount:.2f} total sales")
|
412 |
|