A companion data science project to the bakery-manager CLI app. This lab explores real-world analytics, trends, and predictions using transaction and inventory data collected by the bakery system.
- Analyze bakery inventory and transactions with Python & pandas
- Visualize trends using matplotlib and seaborn
- Forecast inventory depletion and sales using basic ML
- Build interactive or exportable reports for the team
- Python 3 (via Anaconda)
- Jupyter Notebook / JupyterLab
- pandas, matplotlib, seaborn
- SQLite (using data from bakery-manager)
Optional:
- scikit-learn for regression or classification
- streamlit for interactive dashboards
bakery-data-lab/
βββ notebooks/
β βββ transactions_analysis.ipynb
βββ data/
β βββ bakery.db # or CSV exports from bakery-manager
βββ scripts/
β βββ connect_sqlite.py
βββ README.md
βββ requirements.txt (optional for pip)- Clone this repo
- Open a Jupyter notebook:
jupyter notebook- Run
transactions_analysis.ipynbto explore sales + expenses
You can also use:
jupyter labThis lab uses data generated by the bakery-manager Rust application:
- Inventory (
inventorytable) - Transactions (
transactionstable) - Recipes and usage (optional in advanced stages)
You can export the SQLite file or write a Rust function to output CSVs for easier import.
- What are my top-selling items?
- Which ingredients are depleting the fastest?
- When should I reorder butter?
- Whatβs the rolling 7-day revenue?
- Add more notebooks to the
/notebooksfolder - Link with your
bakery-managerproject for real-time analysis - Build a streamlit dashboard version
Made with β + π by Sarah, data baker-in-training π§