Spaces:
Sleeping
Sleeping
Commit
·
b833cd3
1
Parent(s):
68637a8
feat: updated website
Browse files
app.py
CHANGED
@@ -370,6 +370,7 @@ elif page == "Customer Analysis":
|
|
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
|
375 |
datos_historicos = historical_data[
|
|
|
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 |
+
fecha_inicio = pd.to_datetime(fecha_inicio)
|
374 |
|
375 |
# Filter historical data for the customer over the last 12 months
|
376 |
datos_historicos = historical_data[
|