Create insights.py
Browse files- 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 |
+
"""
|