GMARTINEZMILLA commited on
Commit
f8ba271
1 Parent(s): 7303227

bugfix: Manufacturers Alerts

Browse files
Files changed (1) hide show
  1. app.py +0 -16
app.py CHANGED
@@ -74,22 +74,6 @@ with st.sidebar:
74
  st.sidebar.title("DeepInsightz")
75
  page = st.sidebar.selectbox("Select the tool you want to use", ["Summary", "Customer Analysis", "Articles Recommendations"])
76
 
77
- # If the user selects "Customer Analysis," show filter options in the sidebar
78
- if page == "Customer Analysis":
79
- st.sidebar.title("Filter Options")
80
- show_all = st.sidebar.checkbox('Show All Manufacturers', value=True, key='show_all_checkbox')
81
-
82
- # Initialize selected_manufacturer
83
- selected_manufacturer = None
84
-
85
- # If not showing all, allow filtering by manufacturer code
86
- if not show_all:
87
- selected_manufacturer = st.sidebar.selectbox(
88
- 'Select Manufacturer Code',
89
- historical_data['marca_id_encoded'].unique(),
90
- key='manufacturer_selector'
91
- )
92
-
93
  # Generamos la columna total_sales
94
  ventas_clientes['total_sales'] = ventas_clientes[['VENTA_2021', 'VENTA_2022', 'VENTA_2023']].sum(axis=1)
95
  # Ordenar los clientes de mayor a menor según sus ventas totales
 
74
  st.sidebar.title("DeepInsightz")
75
  page = st.sidebar.selectbox("Select the tool you want to use", ["Summary", "Customer Analysis", "Articles Recommendations"])
76
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
  # Generamos la columna total_sales
78
  ventas_clientes['total_sales'] = ventas_clientes[['VENTA_2021', 'VENTA_2022', 'VENTA_2023']].sum(axis=1)
79
  # Ordenar los clientes de mayor a menor según sus ventas totales