GMARTINEZMILLA commited on
Commit
13f3bbf
1 Parent(s): 5a3537f

feat: updated app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -324,6 +324,7 @@ elif page == "Customer Analysis":
324
 
325
  if not customer_sales_data.empty:
326
  customer_sales = customer_sales_data[sales_columns].values[0]
 
327
 
328
  fig_sales = px.line(x=years, y=customer_sales, markers=True, title=f'Sales Over the Years for Customer {customer_code}')
329
  fig_sales.update_layout(xaxis_title="Year", yaxis_title="Sales")
 
324
 
325
  if not customer_sales_data.empty:
326
  customer_sales = customer_sales_data[sales_columns].values[0]
327
+ years = ['2021', '2022', '2023']
328
 
329
  fig_sales = px.line(x=years, y=customer_sales, markers=True, title=f'Sales Over the Years for Customer {customer_code}')
330
  fig_sales.update_layout(xaxis_title="Year", yaxis_title="Sales")