Spaces:
Sleeping
Sleeping
GMARTINEZMILLA
commited on
Commit
•
ec8d56f
1
Parent(s):
553ff54
feat: updated website
Browse files
app.py
CHANGED
@@ -223,20 +223,21 @@ if page == "Summary":
|
|
223 |
|
224 |
# Configurar columnas para mostrar los clientes y las ventas totales
|
225 |
st.dataframe(ventas_top_100[['codigo_cliente', 'total_sales']],
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
230 |
-
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
)
|
239 |
-
)
|
|
|
240 |
# Customer Analysis Page
|
241 |
elif page == "Customer Analysis":
|
242 |
st.title("Customer Analysis")
|
|
|
223 |
|
224 |
# Configurar columnas para mostrar los clientes y las ventas totales
|
225 |
st.dataframe(ventas_top_100[['codigo_cliente', 'total_sales']],
|
226 |
+
column_order=("codigo_cliente", "total_sales"),
|
227 |
+
hide_index=True,
|
228 |
+
width=500, # Ajustar el ancho de la tabla
|
229 |
+
height=700, # Ajustar la altura de la tabla
|
230 |
+
column_config={
|
231 |
+
"codigo_cliente": st.column_config.TextColumn(
|
232 |
+
"Client Code",
|
233 |
+
),
|
234 |
+
"total_sales": st.column_config.ProgressColumn(
|
235 |
+
"Total Sales (€)",
|
236 |
+
format="%d",
|
237 |
+
min_value=0,
|
238 |
+
max_value=ventas_top_100['total_sales'].max()
|
239 |
+
)}
|
240 |
+
)
|
241 |
# Customer Analysis Page
|
242 |
elif page == "Customer Analysis":
|
243 |
st.title("Customer Analysis")
|