GMARTINEZMILLA commited on
Commit
e10f2e9
1 Parent(s): 8d27cbf

feat: updated website

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -366,6 +366,9 @@ elif page == "Customer Analysis":
366
  fecha_corte = pd.to_datetime("2024-01-01") # Adjust as needed
367
  fecha_inicio = fecha_corte - pd.DateOffset(months=12)
368
 
 
 
 
369
  # Filter historical data for the customer over the last 12 months
370
  datos_historicos = historical_data[
371
  (historical_data['cliente_id'] == customer_code_str) &
 
366
  fecha_corte = pd.to_datetime("2024-01-01") # Adjust as needed
367
  fecha_inicio = fecha_corte - pd.DateOffset(months=12)
368
 
369
+ historical_data['fecha_mes'] = pd.to_datetime(historical_data['fecha_mes'], errors='coerce')
370
+ results['fecha_mes'] = pd.to_datetime(results['fecha_mes'], errors='coerce')
371
+
372
  # Filter historical data for the customer over the last 12 months
373
  datos_historicos = historical_data[
374
  (historical_data['cliente_id'] == customer_code_str) &