{"id":30384355,"url":"https://github.com/faisal-khann/vendor_impact_analysis","last_synced_at":"2025-08-21T01:34:39.549Z","repository":{"id":306883755,"uuid":"1026904945","full_name":"Faisal-khann/Vendor_impact_Analysis","owner":"Faisal-khann","description":"Vendor Impact Analysis is the process of evaluating and measuring how well suppliers or vendors contribute to a company's success in terms of product quality, cost-effectiveness, timely delivery, reliability, and overall value. ","archived":false,"fork":false,"pushed_at":"2025-08-10T07:31:48.000Z","size":15073,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-10T09:16:30.869Z","etag":null,"topics":["data-visualization","git","powerbi","python","sql","sqllite3"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Faisal-khann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-26T21:45:07.000Z","updated_at":"2025-08-10T07:31:52.000Z","dependencies_parsed_at":"2025-07-28T08:43:53.840Z","dependency_job_id":"ae6a7cd4-9790-4db8-ac4a-7a60207eff41","html_url":"https://github.com/Faisal-khann/Vendor_impact_Analysis","commit_stats":null,"previous_names":["faisal-khann/vendor-performance-analysis","faisal-khann/vendor-impact-analysis","faisal-khann/vendor_impact_analysis"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Faisal-khann/Vendor_impact_Analysis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Faisal-khann%2FVendor_impact_Analysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Faisal-khann%2FVendor_impact_Analysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Faisal-khann%2FVendor_impact_Analysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Faisal-khann%2FVendor_impact_Analysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Faisal-khann","download_url":"https://codeload.github.com/Faisal-khann/Vendor_impact_Analysis/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Faisal-khann%2FVendor_impact_Analysis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271415284,"owners_count":24755629,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-20T02:00:09.606Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-visualization","git","powerbi","python","sql","sqllite3"],"created_at":"2025-08-21T01:34:38.692Z","updated_at":"2025-08-21T01:34:39.543Z","avatar_url":"https://github.com/Faisal-khann.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 📦 Vendor impact Analysis - Inventory Management\n\n\u003cem\u003eAnalyzing vendor efficiency and profitability to support strategic purchasing and inventory decisions using **SQL**, **Python**, and **Power BI**.\u003c/em\u003e\n\n---\n\n## 📌 Table of Contents\n- [Overview](#Overview)\n- [Project Workflow](#Project-Workflow)\n- [Business Problem](#business-problem)\n- [Dataset](#dataset)\n- [Tools \u0026 Technologies](#tools--technologies)\n- [Project Structure](#Project-Structure)\n- [Data Pipeline Overview](#Data-Pipeline-Overview)\n- [Dashboard Preview](#Dashboard-Preview)\n- [Key Outcomes](#Key-Outcomes)\n- [Business Insights](#Business-Insights)\n- [How to Run This Project](#How-to-Run-This-Project)\n- [Author \u0026 Contact](#author--contact)\n---\n## Overview\n\u003cp\u003e This project evaluates vendor impact (overall performance) and retail inventory dynamics to drive strategic insights for purchasing, pricing, and inventory optimization. A complete data pipeline was built using SQL for ETL, Python for analysis and hypothesis testing, and Power BI for visualization.\n    \nThrough comprehensive data analysis using Python and SQL on a retail dataset, the project evaluates key metrics such as gross profit, profit margins, stock turnover, freight costs, and sales-to-purchase ratios.  \nBy identifying top-performing vendors and brands, as well as underperforming products with high margins, the analysis supports strategic decisions related to procurement, pricing, and promotions.\n\nThe insights derived also highlight how bulk purchasing can significantly reduce unit costs, contributing to improved profit margins. Additionally, the project reveals the extent of capital locked in unsold inventory and identifies vendors with low stock turnover, enabling businesses to take corrective actions.\n\u003c/p\u003e\n\n---\n\n## Project Workflow\n\n\u003cimg width=\"1240\" height=\"685\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/98b9225b-ef6b-43f1-b708-2ee15e2079a8\" /\u003e\n\n## Business Problem\n\nCompanies often face losses due to poor inventory practices, inefficient pricing strategies, and vendor over-dependence. This analysis aims to:\n\n- Identify underperforming brands needing promotional or pricing adjustments.\n- Determine top vendors contributing to sales and gross profit.\n- Analyze the cost-benefit of bulk purchasing.\n- Assess inventory turnover to improve efficiency and reduce holding costs.\n- Investigate profitability variance between high- and low-performing vendors\n\n## Tools \u0026 Technologies\n\n| Tool        | Purpose                         |\n|-------------|----------------------------------|\n| **Python**  | Data analysis \u0026 scripting        |\n| **Pandas**  | Data manipulation                |\n| **SQL**     | Data extraction from SQLite      |\n| **Power BI**| Dashboard creation               |\n| **Jupyter** | EDA \u0026 visualization              |\n| **Matplotlib/Seaborn** | Visual analytics     |\n\n---\n## Dataset\n- Multiple CSV files located in /data/ folder (sales, vendors, inventory)\n- Summary table created from ingested data and used for analysis\n---\n\n## Project Structure\n\n```\nvendor-performance-analysis/\n│\n├── README.md\n├── .gitignore\n├── requirements.txt\n├── Vendor Performance Report.pdf\n│\n├── notebooks/                  # Jupyter notebooks\n│   ├── ingesting-logs.ipynb\n    ├── sql-powered_data_analysis.ipynb\n│   ├── vendor_impact_analysis.ipynb\n│\n├── scripts/                    # Python scripts for ingestion and processing\n│   ├── ingestion_db.py\n│   └── get_vendor_summary.py\n│\n├── dashboard/                  # Power BI dashboard file\n│   └── vendor_performance_dashboard.pbix\n```\n\n---\n\n\n## Data Pipeline Overview\n\n```mermaid\ngraph TD;\n    A[Define Business Problem] --\u003e B[Explore DB with SQL];\n    B --\u003e C[Clean \u0026 Merge Tables];\n    C --\u003e D[Create Aggregated Table];\n    D --\u003e E[Save to SQLite DB];\n    D --\u003e F[Load in Jupyter];\n    F --\u003e G[Perform EDA];\n    G --\u003e H[Create Power BI Dashboard];\n    H --\u003e I[Report Insights];\n```\n\n---\n\n## Key Outcomes\n\n- 📌 **Cleaned \u0026 Valid Dataset**  \n  - Removed inconsistencies like negative profit margins, gross profit and zero sales.\n  - Final dataset contains **8,565 valid records** ready for analysis.\n\n- 📌 **Top Vendors \u0026 Brands Identified**  \n  - **Top Vendors by Sales**:\n    - DIAGEO NORTH AMERICA INC – `$67.99M`\n    - MARTIGNETTI COMPANIES – `$39.33M`\n    - PERNOD RICARD USA – `$32.06M`\n  - **Top Brands by Sales**:\n    - Jack Daniels No 7 Black – `$7.96M`\n    - Tito’s Handmade Vodka – `$7.40M`\n    - Grey Goose Vodka – `$7.21M`\n \u003cimg width=\"1500\" height=\"483\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/0ac76af0-b694-4ec4-a908-2ce6f5a3daf7\" /\u003e\n\n- 📌 **Underperforming High-Margin Brands**  \n  - Brands like *Santa Rita Organic* and *Debauchery Pnt Nr* had **high margins but low sales**.\n  - Recommend strategic promotions or pricing updates.\n\n- 📌 **Vendor Purchase Contribution**  \n  - **Top 10 vendors contribute 65.69%** of total purchases.\n  - Demonstrated using Pareto and Donut charts.\n\u003cimg width=\"1042\" height=\"647\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/fbbfbcf7-d8d6-42b5-a0a0-547e60dd4406\" /\u003e\n\n- 📌 **Bulk Purchasing Reduces Unit Price**  \n  - Small Orders: `$39.06` per unit  \n  - Large Orders: `$10.78` per unit  \n  - Bulk purchases reduce cost by **~72%**, boosting profitability.\n\n- 📌 **Inventory Issues Detected**  \n  - Vendors like *ALISA CARR BEVERAGES* have **very low stock turnover (\u003c1)**.\n  - Total capital locked in unsold inventory: **`$2.71M`**\n\n- 📌 **Profit Margin Confidence Intervals**  \n  - **Top-performing vendors**: Mean Margin `31.17%`, CI: `(30.74%, 31.61%)`  \n  - **Low-performing vendors**: Mean Margin `41.55%`, CI: `(40.48%, 42.62%)`  \n  - Indicates low performers rely on **premium pricing**, not volume.\n\u003cimg width=\"1154\" height=\"629\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/8aaf5e91-7002-4738-a8bc-99e88ab24eeb\" /\u003e\n\n---\n\n## Business Insights\n\n- **Sales \u0026 Purchase Alignment**  \n  - Nearly perfect correlation (0.999) between purchase and sales quantity → **Efficient inventory turnover**\n\n- **Freight Cost Variability**  \n  - Wide cost range suggests **logistical inefficiencies** or bulk shipment variability.\n\n- **Stock Turnover ≠ Profitability**  \n  - High turnover doesn’t always translate to higher profit → Possible discounting or low-margin sales.\n\n- **Skewed Distributions Detected**  \n  - `GrossProfit`, `ProfitMargin`, `StockTurnover`, and `SalesToPurchaseRatio` had extreme outliers.  \n  - Addressed via filtering, capping, and visual diagnostics.\n\n- **Consistent Data Handling**  \n  - Applied statistical thresholds and visualizations to ensure clean, actionable data for analysis and reporting.\n \n---\n## Dashboard Preview\n\n`Below is a preview of the Power BI dashboard showing key vendor KPIs:`\n\u003e 📁 Live-Dashboard: [`Inventory_Management.pbix`](https://app.powerbi.com/view?r=eyJrIjoiMDkzMGFiNGUtODMxZS00M2RhLTk2MDgtN2JkZWQzZjc2OGMzIiwidCI6IjQyYjUxMzUzLTZhMzctNDA5Zi1hMmZlLTc3OGE5YmUzMTllNCJ9)\n\u003cdiv\u003e\n    \u003cimg width=\"1165\" height=\"658\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/afb42d15-ceba-472e-8439-4cec9e6a65fa\" /\u003e\n\n\u003cimg width=\"963\" height=\"544\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/7b8ec3cd-d50c-4931-8960-1008320ba95b\" /\u003e\n\u003c/div\u003e\n\n---\n## How to Run This Project\n \n 1. Clone the repository:\n    \n         git clone https://github.com/yourusername/vendor-impact-analysis.git\n\n 2. Load the CSVs and ingest into database:\n\n        python scripts/ingestion_db.py\n\n 3. Create vendor summary table:\n\n        python scripts/get_vendor_summary.py\n    \n4. Open and Run Notebooks\n   \n    ○ `notebooks/sql-powered_data_analysis.ipynb`  \n    ○ `notebooks/vendor_impact_analysis.ipynb`\n    \n 6. Open Power BI Dashboard:\n\n        Dashboard/Inventory_Management.pbix\n\n---\n\n## Author \u0026 Contact\n\n**Faisal Khan**  \n*Data Analyst*\n\nFor any questions, collaboration opportunities, or project-related inquiries, feel free to reach out:\n\n- 📧 [Email](mailto:thisside.faisalkhan@example.com)  \n- 💼 [LinkedIn](http://www.linkedin.com/in/faisal-khan-332b882bb)\n\nLet’s connect and build something impactful!\n\n---\n\u003e Made with ❤️ using Jupyter Notebook, Python, SQL \u0026 Power BI\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaisal-khann%2Fvendor_impact_analysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffaisal-khann%2Fvendor_impact_analysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffaisal-khann%2Fvendor_impact_analysis/lists"}