MBG0903 commited on
Commit
fe0da11
·
verified ·
1 Parent(s): eeee264

Create insights.py

Browse files
Files changed (1) hide show
  1. tools/insights.py +16 -0
tools/insights.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ def generate_insights(df):
2
+ fast = sum(df["Velocity"].str.lower() == "fast")
3
+ med = sum(df["Velocity"].str.lower() == "medium")
4
+ slow = sum(df["Velocity"].str.lower() == "slow")
5
+
6
+ return f"""
7
+ ### 📊 Warehouse Insights
8
+ - Fast movers: {fast}
9
+ - Medium movers: {med}
10
+ - Slow movers: {slow}
11
+
12
+ **Impact:**
13
+ - Reduced walking distance
14
+ - Better zone balancing
15
+ - Improved outbound throughput
16
+ """