-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
36 lines (26 loc) · 764 Bytes
/
main.py
File metadata and controls
36 lines (26 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
"""
main.py — Sales EDA Dashboard entry point
Run order:
1. Generate 2-year multi-dimensional sales dataset
2. Compute all KPIs (revenue, profit, margin, YoY, etc.)
3. Print KPI summary to terminal
4. Render full Power BI-style 8-panel dashboard
"""
import config
from data_gen import generate
from kpi import compute, print_summary
from dashboard import plot
def main():
print("=" * 55)
print(" SALES EDA DASHBOARD — Power BI Style")
print("=" * 55)
print("\n[1] Generating sales data...")
df = generate()
print("\n[2] Computing KPIs...")
kpis = compute(df)
print_summary(kpis)
print("\n[3] Rendering dashboard...")
plot(kpis)
print("\n Done ✓")
if __name__ == "__main__":
main()