Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,6 +2,15 @@ import pandas as pd
|
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
from analytics.monitoring_analysis import generate_monitoring_table
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
from metrics.mix_metrics import (
|
| 6 |
calculate_count_mix,
|
| 7 |
calculate_limit_mix
|
|
@@ -13,6 +22,16 @@ from metrics.mix_metrics import (
|
|
| 13 |
acq = pd.read_csv("data/acquisition.csv")
|
| 14 |
perf = pd.read_csv("data/performance.csv")
|
| 15 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
|
| 17 |
# ------------------------
|
| 18 |
# Core Engine
|
|
|
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
from analytics.monitoring_analysis import generate_monitoring_table
|
| 5 |
+
|
| 6 |
+
from helper.vintage_helpers import(
|
| 7 |
+
create_booking_vintage
|
| 8 |
+
)
|
| 9 |
+
|
| 10 |
+
from helper.data_merger import(
|
| 11 |
+
merge_acq_perf
|
| 12 |
+
)
|
| 13 |
+
|
| 14 |
from metrics.mix_metrics import (
|
| 15 |
calculate_count_mix,
|
| 16 |
calculate_limit_mix
|
|
|
|
| 22 |
acq = pd.read_csv("data/acquisition.csv")
|
| 23 |
perf = pd.read_csv("data/performance.csv")
|
| 24 |
|
| 25 |
+
acq= create_booking_vintage(
|
| 26 |
+
acq,
|
| 27 |
+
booking_date_col="booking_date"
|
| 28 |
+
)
|
| 29 |
+
|
| 30 |
+
perf = merge_acq_perf(
|
| 31 |
+
acq,
|
| 32 |
+
perf
|
| 33 |
+
)
|
| 34 |
+
|
| 35 |
|
| 36 |
# ------------------------
|
| 37 |
# Core Engine
|