TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Deploy Logistics Operational Dashboards with Python DataPane

Deploy Reporting Solutions using DataPane to Support Warehousing Logistics Operations for E-Commerce.

Samir Saci
TDS Archive
Published in
8 min readJan 21, 2022

--

A diagram showing four icons representing the workflow for creating an operational dashboard. The first icon is the Excel logo, representing the input data source. The second is the Python logo, indicating data processing with Python. The third is the DataPane logo, a tool for deploying dashboards. The fourth is a sample bar chart showing a visualized output. The image represents a simplified architecture of reporting and dashboarding for e-commerce logistics using Python and DataPane.
Deploy Logistics Operational Dashboards with Python DataPane

Small and medium-sized enterprises (SMEs) often struggle to compete with larger companies regarding data analytics and reporting capabilities.

But with the right approach, even smaller businesses can build the tools they need to succeed.

This article will walk you through a simple architecture for deploying reporting solutions using DataPane.

The focus is supporting your supply chain operations and improving logistics performance management.

Objective

Build reporting capabilities to provide supply chain visibility and support the operational teams of a mid-size retailer's distribution center.

Introduction

In some markets, like China, e-commerce has completely disrupted the retail industry.

The rapidly changing consumer behaviours have dramatically changed how these companies manage their business.

This directly impacts the Logistics Operations of these retailers, which now face high volume volatility, larger portfolios of products, and very short lead times.

Build Data Analytics Capabitilities for Small Businesses

However, SMEs (Small and medium enterprises) may need more money to invest in expensive data infrastructures to build reporting capabilities.

In this article, we will design a simple architecture to deploy an interactive dashboard for Warehousing Operations using the Python Library DataPane.

SUMMARY
I. Context: Warehousing Operations for E-Commerce
Warehouse to prepare and ship orders for an E-Commerce website
Objective
How can you support Operational Excellence with simple reports
II. Build reports using DataPane
1. Quick Introduction
Deploy and share your results with Datapane
2. Monitor the picking workload
Build visuals showing the number of orders received per day
3. Analyze the volumes pareto
How many SKU are representing 80% of your volume?
III. Conclusion & Next Steps

How to deploy dashboards without PowerBI?

Logistics Operations for E-Commerce

As a Continuous Improvement Engineer in the Distribution Center (Warehouse) of a midsize online retailer, you build reporting capabilities to improve operational teams' visibility.

Logistics Operations for E-Commerce

An infographic titled “Logistics Operations for E-Commerce: The Different Steps Between Customer Order and Shipment.” It visually represents the process of e-commerce order fulfillment. A customer orders 1 perfume, 20 shirts, and 15 bags. The order is transferred to the warehouse for picking. Items are packed in cartons and shipped to the store. The final section shows order details, including order number, customer ID, and delivery date.
(Image by Author)

The distribution centre is in charge of order fulfilment and shipment

  1. Customers order products on the website
  2. These orders are received by the Warehouse Management System (WMS)
  3. Warehouse Operators prepare the orders and pack them in parcels
  4. Parcels are shipped to the customers
A 3D diagram of a warehouse divided into four operational steps: Step 1: Orders are received by the admin team (indicated by red text and arrow). Step 2: Orders are picked from racks by the picking team (blue text and arrow). Step 3: Orders are packed into parcels (yellow text and arrow). Step 4: Parcels are shipped to customers (black text and arrow). The image illustrates the sequence of logistics operations within a distribution center.
Distribution Center Layout (Image by Author)

Reporting Solutions for Operational KPI Tracking

The most important Key Indicator of Performance (KPI) is the lead time between order receiving and parcel shipment.

All the processes in the chain impact this KPI; you will provide visibility on the key indicators impacting the overall performance.

For more information about Logistics Performance Management

Deploy reports with Python DataPane

You will not build a complete cloud architecture with ETL jobs and advanced visualization tools like PowerBI, Tableau or Google Studio.

The idea is to extract data from the WMS, process your data locally and deploy reports that operational teams can use.

Deploy reporting capabilities with DataPane.

This framework allows you to share the results of your Jupyter Notebook with your colleagues.

For instance, you would like to share this simple bar plot chart.

A bar chart comparing the number of orders and lines per day. The x-axis represents days of the week (Monday to Sunday), and the y-axis shows the quantity of orders (in blue) and lines (in red) for each day. The chart indicates a higher volume of lines than orders, with peaks on Sunday and Wednesday.
(Image by Author)

This chart shows the number of orders (and lines) the warehouse receives per day.

How can you share this graph with your colleagues?

It is a very simple process in three steps (Link)

  1. Get the client library using pip
pip3 install datapane

2. Sign up on DataPane and register your Token

datapane login --server=https://datapane.com/ --token=yourtoken

3. Deploy your visual

You must add a section in your code to deploy your visual; you can choose several templates.

They can even select the week with the button (top-left). This visual can be shared privately with a link you can send to the operational teams.

Next Steps

We will now build a set of visuals based on specific processes to bring visibility to the teams.

Monitory your workload

Focus on the Picking Process

A warehouse picking process illustration. It shows shelves with labeled picking locations, a person with a trolley picking items, and arrows representing the movement flow. Items include one perfume, one shirt, and two pairs of glasses. The process highlights the operator stopping at two locations to pick items before transferring them to the packing area.
(Image by Author)

Operators take their trolleys with a list of items ordered by the customer and will stop at each location to take the quantity ordered.

If you want to understand more about the picking process, have a look at the video below

Picking Process in detail (Video by Author)

a. Number of Orders/Lines

Question
How many orders (and lines) do we receive from customers every day?

A major indicator of the picking workload is the number of customer orders (and order lines).

Another bar chart showing the number of orders and lines per day. The x-axis lists days (Monday to Sunday), and the y-axis shows the volume. Orders are displayed in blue, and lines in red. The chart shows a peak on Sunday for both orders and lines, with moderate activity during the weekdays.
Access the interactive visual via link (Visual by Author)

Insights
Week-1 Sunday: picking teams faced a peak of order lines that could probably explain a bad performance this day.

b. Number of Pieces per Day

Question
How many items are ordered by customers every day?

This indicator can provide visibility on the turnover of the company for that day. It is also impacting the volume (cubic meter) of parcels shipped.

A bar chart comparing the number of lines (orange) and pieces (green) per day. The x-axis lists days of the week, and the y-axis shows the quantity. The chart shows the highest volume of pieces on Wednesday and Sunday. Lines and pieces closely follow each other, indicating a consistent picking process.
Access the interactive visual via link (Visual by Author)

Insights
Week-1 Wednesday: we experienced a surge of the number of pieces per line due to a special promotion for a certain item.

Split of orders per ratio of line/order

Question
What is the split (%) of mono-line orders for each day?

With a high number of lines per order, your operators will see their walking distance per order increase.

Therefore, their productivity of picking is directly impacted by the number of lines per order.

A stacked bar chart representing the distribution of order lines per order over five weeks. The x-axis shows weeks, and the y-axis represents the number of orders. The color-coded bars show orders with 1, 2, 3, 4, 5, or more lines per order, with blue indicating single-line orders as the majority across weeks.
Access the visual via link (Visual by Author)

Insights
We have a majority of mono-line orders (1 line/order) that can be picked by batch.

3. Number of Cities Delivered

Question
How many different cities do I need to deliver per day?

The number of cities delivered is impacted your workload for transportation management.

A line chart representing the number of cities delivered per day over a period of time. The x-axis shows days from January 2nd to January 27th, and the y-axis indicates the number of cities delivered. The chart shows variability in deliveries, with a red dashed line marking the average number of cities delivered.
Access the visual via link (Visual by Author)

Insights
For a large part of the month you experienced a surge of the number of cities delivered that may impact your transportation costs.

Focus on the replenishment process

An illustration showing the warehouse replenishment process. The diagram shows a warehouse shelf system with arrows indicating the movement of items from upper storage locations to ground picking locations. A worker with a trolley is shown replenishing items from the upper storage to the lower shelves.
(Image by Author)

When the picking locations (on the ground) are empty, your forklift drivers perform replenishment tasks. They take items from the storage area above to replenish the picking locations for future orders.

Number of replenishments per day

Question
How many replenishment tasks are performed by your operators per day?

This process can become a bottleneck and impact your overall performance, you need to track your workload per day.

A bar chart showing data for Week 1. The x-axis lists days of the week, and the y-axis represents the volume. The chart shows a significant spike on Wednesday, suggesting an outlier event on this day compared to lower values for the rest of the week. The bars are color-coded in green with blue outlines.
Access the visual via link (Visual by Author)

Insights
Week-1 Wednesday: you can see a surge of replenishment tasks that probably impacted your productivity.

Number of replenishments per alley

Question
Which area of your warehouse concentrates the majority of your volume?

Your warehouse is organized by alleys with cells and picking locations.

A top-down grid view of a warehouse layout with labeled aisles (A01 to A19). The grid consists of picking locations aligned vertically and horizontally, with labeled cells. The image represents the start of an order picking route, indicating the operator’s movement through the warehouse.
Example of Warehouse Layout (Image by Author)

A major source of bottleneck is when you have a concentration of people in one area. If you experience this kind of problem, the best solution is to avoid grouping high rotations in the same area.

A treemap representing the number of replenishments per picking cell in a warehouse. Each colored block represents a picking cell, with the size of the block proportionate to the volume of replenishments. The largest cells (A09 and A10) represent the highest replenishments, while smaller cells like R04 have minimal replenishments.
Access the visual via link (Visual by Author)

Insights
WEEK-1: You can see that A09 and A10 represent nearly 20% of the volumes in Pieces, this may cause a bottlenek when you have peaks of orders.

Analyze the Pareto

Question
How many SKUs are representing 80% of my total volume?

To optimize your processes, you must perform product segmentation based on the volume per item.

Items with high rotations need to be placed in full pallet-picking locations, while items with low rotations can be stored on shelves to save space.

Because the business is evolving, you must track your Pareto to adjust your layout and processes.

Access the visual via link (Visual by Author)

If you want to understand more about the Pareto law for layout optimization, have a look at the video below

Layout Optimization with the Pareto law (Video by Author)

Conclusion & Next Steps

Boost logistics performance management for SMEs with data analytics tools like DataPane to optimize operational indicators and improve international distribution networks.

Useful & Simple

You have built a set of simple (but very useful) visuals that operational teams can use.

For instance, they can be embedded in a Notion document with a comments area to make it a living document.

This solution will not meet the performance and functionalities of a proper cloud architecture. However, it can be easily implemented without any additional costs for small structures.

Deploy your solution on the cloud.

You can deploy the code you use to build these visuals in the cloud (Heroku, Google App Engine) to automate this process and trigger tasks daily.

Build a Supply Chain Control Tower

A supply chain control tower is traditionally defined as a set of dashboards connected to various systems using data to monitor important events across the supply chain.

It enables a Supply Chain department to track, understand, and resolve critical issues in real-time.

This diagram illustrates a data processing workflow for logistics operations. It is divided into three sections: Data Extraction, Data Processing, and Distribution. In the Data Extraction section, systems such as Freight Forward System, Warehouse Management System, and Distribution Planning System provide data via SQL queries. The data is processed through various analyses: Analysis 1, Analysis 2, and Analysis 3. Each analysis generates a report (Report 1, Report 2, Report 3) distributed.
Shipments Tracking in 3 Steps — (Image by Author)

Datapane visuals will be used to follow the shipments and report incidents to the store and logistic managers:

  • How many shipments have been delivered with delay?
  • Where are the shipments currently in transit?
  • How many transit shipments are at risk?

For more details,

About Me

Let’s connect on Linkedin and Twitter, I am a Supply Chain Engineer using data analytics to improve logistics operations and reduce costs.

For consulting or advice on analytics and sustainable supply chain transformation, feel free to contact me via Logigreen Consulting.

If you are interested in Data Analytics and Supply Chain, have a look at my website.

💌 New articles straight in your inbox for free: Newsletter
📘 Your complete guide for Supply Chain Analytics: Analytics Cheat Sheet

--

--

Published in TDS Archive

An archive of data science, data analytics, data engineering, machine learning, and artificial intelligence writing from the former Towards Data Science Medium publication.

Written by Samir Saci

Top Supply Chain Analytics Writer — Case studies using Data Science for Supply Chain Sustainability 🌳 and Productivity: https://bit.ly/supply-chain-cheat

No responses yet