Automated PDF Business Intelligence Dashboard for Tanzania Grain Wholesalers
# π Nala Warehouse Operations & Financial Analytics Engine
An end-to-end financial analytics and automated reporting pipeline built for **Nala Warehouse**. This engine processes raw transactional sales data, calculates core business metrics (Revenue, Net Profit, Overdue Receivables), evaluates inventory turnover risk, and compiles multi-page executive PDF dashboards and high-definition visual assets.
Engineered by **Namba Data Analytics**.
## Overview
This tool generates a weekly/monthly PDF report for Nala that includes:
- **Revenue Trend**: 2-week moving average of weekly sales
- **Profit by Customer Segment**: Bar chart ranking Retail Chains, Wholesale, Importers, Processors
- **Discount Impact**: How discount rates affect net profit across segments
- **Inventory Turnover**: Average storage days by commodity - Maize, Beans, Rice, Groundnuts
- **Closing Remarks**: Actionable summary + risks
- **Namba Insights Brand Footer**: Contact banner
Goal: Help management make decisions in 5 minutes instead of digging through Excel.
## Project Structure
nala/
βββ nala_analysis.py # Data processing & calculations
βββ nala_charts.py # Chart generation with matplotlib
βββ nala_dashboard.py # Main entry point - generates PDF
βββ data/
β βββ nala_sales.csv # Raw sales data
βββ charts/
β βββ weekly_revenue_trend.png # Chart 1
β βββ sales_profit_per_customer.png # Chart 2
β βββ discount_rate_profit_correlation.png # Chart 3
β βββ average_storage_duration.png # Chart 4
βββ output/
β βββ nala_dashboard_report.pdf # Final PDF report
βββ assets/
β βββ namba_insights.jpg # Namba Data Analytics logo
βββ README.md # Project documentation
## β‘ Installation & Setup
### 1. Clone the Repository
```bash
git clone
github.com
cd nala
### 2. Set Up Virtual Environment
# On macOS/Linux
python3 -m ven β¦