GMARTINEZMILLA commited on
Commit
68637a8
·
1 Parent(s): 529c6bc

feat: updated website

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -367,6 +367,8 @@ elif page == "Customer Analysis":
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
 
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
+
371
+ # Ensure the 'fecha_mes' column in results is also in datetime format if it's being used for comparisons
372
  results['fecha_mes'] = pd.to_datetime(results['fecha_mes'], errors='coerce')
373
 
374
  # Filter historical data for the customer over the last 12 months