yogape commited on
Commit
54e7d1d
·
verified ·
1 Parent(s): f379930

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +223 -2
README.md CHANGED
@@ -1,3 +1,224 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
- license: mit
3
- ---
 
 
 
1
+ ## Logistics Operations Database
2
+
3
+ ## About this Dataset
4
+
5
+ ### What's Inside
6
+
7
+ A complete operational database from a fictional Class 8 trucking company spanning three years. This isn't scraped web data or simplified tutorial content—it's a realistic simulation built from 12 years of real-world logistics experience, designed specifically for analysts transitioning into supply chain and transportation domains.
8
+
9
+ The dataset contains 85,000+ records across 14 interconnected tables covering everything from driver assignments and fuel purchases to maintenance schedules and delivery performance. Each table maintains proper foreign key relationships, making this ideal for practicing complex SQL queries, building data pipelines, or developing operational dashboards.
10
+
11
+ ### Who This Is For
12
+
13
+ **SQL Learners:** Master window functions, CTEs, and multi-table JOINs using realistic business scenarios rather than contrived examples.
14
+
15
+ **Data Analysts:** Build portfolio projects that demonstrate understanding of operational metrics: cost-per-mile analysis, fleet utilization optimization, driver performance scorecards.
16
+
17
+ **Aspiring Supply Chain Analysts:** Work with authentic logistics data patterns—seasonal freight volumes, equipment utilization rates, route profitability calculations—without NDA restrictions.
18
+
19
+ **Data Science Students:** Develop predictive models for maintenance scheduling, driver retention, or route optimization using time-series data with actual business context.
20
+
21
+ **Career Changers:** If you're moving from operations into analytics (like the dataset creator), this provides a bridge—your domain knowledge becomes a competitive advantage rather than a gap to explain.
22
+
23
+ ### Why This Dataset Exists
24
+
25
+ Most logistics datasets are either proprietary (unavailable) or overly simplified (unrealistic). This fills the gap: operational complexity without confidentiality concerns. The data reflects real industry patterns:
26
+
27
+ - Fuel prices track the 2022 diesel spike and 2023-2024 decline
28
+ - Driver turnover sits at 15% annually (industry standard)
29
+ - Equipment utilization averages 65% (typical for dry van operations)
30
+ - On-time delivery performance ranges 85-95% (realistic service levels)
31
+ - Maintenance intervals follow Class 8 PM schedules
32
+
33
+ ### Dataset Structure
34
+
35
+ **Core Entities (Reference Tables):**
36
+ - Drivers (150 records) - Demographics, employment history, CDL info
37
+ - Trucks (120 records) - Fleet specs, acquisition dates, status
38
+ - Trailers (180 records) - Equipment types, current assignments
39
+ - Customers (200 records) - Shipper accounts, contract terms, revenue potential
40
+ - Facilities (50 records) - Terminals and warehouses with geocoordinates
41
+ - Routes (60+ records) - City pairs with distances and rate structures
42
+
43
+ **Operational Transactions:**
44
+ - Loads (57,000+ records) - Shipment details, revenue, booking type
45
+ - Trips (57,000+ records) - Driver-truck assignments, actual performance
46
+ - Fuel Purchases (131,000+ records) - Transaction-level data with pricing
47
+ - Maintenance Records (6,500+ records) - Service history, costs, downtime
48
+ - Delivery Events (114,000+ records) - Pickup/delivery timestamps, detention
49
+ - Safety Incidents (114 records) - Accidents, violations, claims
50
+
51
+ **Aggregated Analytics:**
52
+ - Driver Monthly Metrics (5,400+ records) - Performance summaries
53
+ - Truck Utilization Metrics (3,800+ records) - Equipment efficiency
54
+
55
+ ### Key Features
56
+
57
+ **Temporal Coverage:** January 2022 through December 2024 (3 years)
58
+
59
+ **Geographic Scope:** National operations across 25+ major US cities
60
+
61
+ **Realistic Patterns:**
62
+ - Seasonal freight fluctuations (Q4 peaks)
63
+ - Historical fuel price accuracy
64
+ - Equipment lifecycle modeling
65
+ - Driver retention dynamics
66
+ - Service level variations
67
+
68
+ **Data Quality:**
69
+ - Complete foreign key integrity
70
+ - No orphaned records
71
+ - Intentional 2% null rate in driver/truck assignments (reflects reality)
72
+ - All timestamps properly sequenced
73
+ - Financial calculations verified
74
+
75
+ ### Use Case Examples
76
+
77
+ **Business Intelligence:**
78
+ Create executive dashboards showing revenue per truck, cost per mile, driver efficiency rankings, maintenance spend by equipment age, and customer concentration risk.
79
+
80
+ **Predictive Analytics:**
81
+ Build models forecasting equipment failures based on maintenance history, predict driver turnover using performance metrics, and estimate route profitability for new lanes.
82
+
83
+ **Operations Optimization:**
84
+ Analyze route efficiency, identify underutilized assets, optimize maintenance scheduling, calculate ideal fleet size, and evaluate driver-to-truck ratios.
85
+
86
+ **SQL Mastery:**
87
+ Practice window functions for running totals and rankings, write complex JOINs across 6+ tables, implement CTEs for hierarchical queries, and perform cohort analysis on driver retention.
88
+
89
+ ### Sample Questions to Explore
90
+
91
+ 1. Which routes generate the highest profit margin after fuel costs?
92
+ 2. How does driver tenure correlate with fuel efficiency and on-time performance?
93
+ 3. What's the optimal preventive maintenance interval to minimize the total cost of ownership?
94
+ 4. Which customers have the highest revenue-per-load and best payment terms?
95
+ 5. How do seasonal patterns affect equipment utilization and revenue?
96
+ 6. What safety incident patterns exist by driver experience level?
97
+ 7. Which city pairs have the most reliable on-time delivery performance?
98
+ 8. How does truck age impact maintenance costs and downtime?
99
+
100
+ ### Data Format
101
+
102
+ All tables are provided as CSV files with headers. Relationships documented in the included schema file. Compatible with:
103
+ - PostgreSQL, MySQL, SQL Server
104
+ - Python (pandas, SQLAlchemy)
105
+ - R (tidyverse, DBI)
106
+ - Tableau, Power BI, Looker
107
+ - Jupyter notebooks, R Markdown
108
+
109
+ ### Column Descriptions
110
+
111
+ **See individual table documentation for complete field definitions. Key identifier patterns:**
112
+
113
+ - `driver_id` format: DRV00001 through DRV00150
114
+ - `truck_id` format: TRK00001 through TRK00120
115
+ - `load_id` format: LOAD00000001 through LOAD00057000+
116
+ - All date fields: ISO format (YYYY-MM-DD or YYYY-MM-DD HH:MM:SS)
117
+ - Currency: USD (dollars and cents)
118
+ - Distance: Miles
119
+ - Fuel: Gallons
120
+
121
+ ### Known Limitations
122
+
123
+ **Not Included:**
124
+ - Hours of Service (HOS) compliance tracking
125
+ - Weather impact modeling
126
+ - Customer payment histories
127
+ - Insurance claim details
128
+ - Detailed cargo manifests
129
+ - Electronic Logging Device (ELD) data
130
+
131
+ **Simplified:**
132
+ - Safety incidents reduced to basic claims data
133
+ - Maintenance descriptions generalized
134
+ - Customer contracts simplified to term length
135
+ - Route planning without traffic/construction
136
+
137
+ These omissions are intentional, adding unnecessary complexity without improving analytical value.
138
+
139
+ ### Competitive Advantages Over Similar Datasets
140
+
141
+ **Compared to UCI/Kaggle logistics datasets:**
142
+ - 10x more records
143
+ - Proper normalization (not flat files)
144
+ - Multi-year temporal depth
145
+ - Financial transactions included
146
+
147
+ **Compared to synthetic data generators:**
148
+ - Domain-specific realism
149
+ - Industry-standard metrics
150
+ - Authentic operational patterns
151
+ - Built by a practitioner, not an academic
152
+
153
+ **Compared to proprietary datasets:**
154
+ - Fully open (no NDA required)
155
+ - Unrestricted use
156
+ - Documented generation process
157
+ - Reproducible
158
+
159
+ ### Suggested Citation
160
+
161
+ If using in academic work or portfolio projects:
162
+
163
+ ```
164
+ Yogape Rodriguez (2025).
165
+ Synthetic Logistics Operations Database (2022-2024).
166
+ Kaggle Dataset. https://www.kaggle.com/datasets/yogape/logistics-operations-database
167
+ ```
168
+
169
+ ### Acknowledgments
170
+
171
+ Dataset generated using operational knowledge from 12 years in Class 8 trucking operations. Created to support career transitions from operations roles into data analytics positions.
172
+
173
+ ### Update Schedule
174
+
175
+ **Current Version:** 1.0.0
176
+
177
+ **Planned Updates:**
178
+ - v1.1.0: Add Hours of Service compliance table
179
+ - v1.2.0: Include weather impact data
180
+ - v2.0.0: Expand to 5-year history (2020-2024)
181
+
182
+ ### Community Contributions
183
+
184
+ Suggestions welcome for:
185
+ - Additional analytical scenarios
186
+ - Jupyter notebook examples
187
+ - SQL query templates
188
+ - Tableau/Power BI dashboards
189
+ - Data validation scripts
190
+
191
+ ### Tags
192
+
193
+ `logistics` `transportation` `supply-chain` `sql-practice` `operations-research` `fleet-management` `business-intelligence` `time-series` `synthetic-data` `trucking` `freight` `analytics-education`
194
+
195
+ ### File Structure
196
+
197
+ ```
198
+ logistics_data/
199
+ ├── drivers.csv (150 records)
200
+ ├── trucks.csv (120 records)
201
+ ├── trailers.csv (180 records)
202
+ ├── customers.csv (200 records)
203
+ ├── facilities.csv (50 records)
204
+ ├── routes.csv (60 records)
205
+ ├── loads.csv (57,000+ records)
206
+ ├── trips.csv (57,000+ records)
207
+ ├── fuel_purchases.csv (131,000+ records)
208
+ ├── maintenance_records.csv (6,500+ records)
209
+ ├── delivery_events.csv (114,000+ records)
210
+ ├── safety_incidents.csv (114 records)
211
+ ├── driver_monthly_metrics.csv (5,400+ records)
212
+ ├── truck_utilization_metrics.csv (3,800+ records)
213
+ └── DATABASE_SCHEMA.txt (relationship documentation)
214
+ ```
215
+
216
+ ### License
217
+
218
+ **MIT License** - Use freely for commercial, educational, or personal projects. Attribution appreciated but not required.
219
+
220
  ---
221
+
222
+ **Questions?** Comment or reach out via messages.
223
+
224
+ **Found this useful?** Upvote and share with others in logistics/supply chain analytics.