Spaces:
Sleeping
Sleeping
GMARTINEZMILLA
commited on
Commit
•
2dcb361
1
Parent(s):
ad5c68d
feat: updated website
Browse files
app.py
CHANGED
@@ -363,8 +363,8 @@ elif page == "Customer Analysis":
|
|
363 |
results['ventas_reales'].fillna(0, inplace=True)
|
364 |
|
365 |
# Define the cutoff date for the last 12 months
|
366 |
-
fecha_corte = pd.to_datetime("
|
367 |
-
fecha_inicio = fecha_corte - pd.DateOffset(months=
|
368 |
|
369 |
historical_data['fecha_mes'] = pd.to_datetime(historical_data['fecha_mes'], errors='coerce')
|
370 |
|
|
|
363 |
results['ventas_reales'].fillna(0, inplace=True)
|
364 |
|
365 |
# Define the cutoff date for the last 12 months
|
366 |
+
fecha_corte = pd.to_datetime("2023-01-01") # Adjust as needed
|
367 |
+
fecha_inicio = fecha_corte - pd.DateOffset(months=21)
|
368 |
|
369 |
historical_data['fecha_mes'] = pd.to_datetime(historical_data['fecha_mes'], errors='coerce')
|
370 |
|