{"id":27068192,"url":"https://github.com/yeuner/margin-price-data-demo-app","last_synced_at":"2025-04-05T20:19:05.529Z","repository":{"id":284616844,"uuid":"955511436","full_name":"Yeuner/margin-price-data-demo-app","owner":"Yeuner","description":"This Streamlit application is a hands-on demo designed to showcase core technical skills related to data analysis, pricing logic, SQL querying, and visualization. It simulates a simple real-world logistics dataset analysis workflow and serves as a personal project.","archived":false,"fork":false,"pushed_at":"2025-03-26T19:15:26.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T20:24:16.696Z","etag":null,"topics":["data-science","pycthon","sql"],"latest_commit_sha":null,"homepage":"https://margin-price-data-demo-app-dah8v5gx8khbx4xtzopbxd.streamlit.app/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Yeuner.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-03-26T18:51:55.000Z","updated_at":"2025-03-26T19:20:01.000Z","dependencies_parsed_at":"2025-03-26T20:34:22.121Z","dependency_job_id":null,"html_url":"https://github.com/Yeuner/margin-price-data-demo-app","commit_stats":null,"previous_names":["yeuner/margin-price-data-demo-app"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yeuner%2Fmargin-price-data-demo-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yeuner%2Fmargin-price-data-demo-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yeuner%2Fmargin-price-data-demo-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yeuner%2Fmargin-price-data-demo-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yeuner","download_url":"https://codeload.github.com/Yeuner/margin-price-data-demo-app/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247393986,"owners_count":20931877,"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","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-science","pycthon","sql"],"created_at":"2025-04-05T20:19:04.980Z","updated_at":"2025-04-05T20:19:05.525Z","avatar_url":"https://github.com/Yeuner.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# 📊 Technical Skills Showcase — Streamlit Demo App\n\n[![Streamlit App](https://img.shields.io/badge/Live%20App-Click%20to%20View-brightgreen?style=for-the-badge\u0026logo=streamlit)](https://margin-price-data-demo-app-dah8v5gx8khbx4xtzopbxd.streamlit.app/)\n\nThis Streamlit application is a hands-on demo designed to showcase core technical skills related to data analysis, pricing logic, SQL querying, and visualization. It simulates a simple real-world logistics dataset analysis workflow and serves as a personal project to practice and demonstrate the following:\n\n- 📊 **Data Analysis** with pandas\n- 💸 **Pricing \u0026 Profitability Calculations**\n- 🧠 **SQL Query Execution** using SQLite\n- 📈 **Visualization** using matplotlib\n- 📥 **CSV Handling** and dynamic input management\n\n---\n\n## 🚀 What This App Does\n\n1. **Upload Data**: Accepts a logistics-style CSV file or uses a sample dataset (`demo_logistics_data.csv`).\n2. **Preview Data**: Displays the first few rows and gives a shape + null count summary.\n3. **Profit \u0026 Margin Analysis**: Automatically calculates unit profit and margin percent using `Price` and `Cost` columns.\n4. **Histogram Visualization**: Shows the distribution of profit margins.\n5. **SQL Query Engine**: Allows you to write SQL queries directly on the uploaded data.\n6. **Insights Summary**: Shows top-performing products and key profitability metrics.\n\n---\n\n## 📂 How to Run\n\n1. Clone this repository:\n   ```bash\n   git clone https://github.com/yeuner/margin-price-data-demo-app.git\n   cd margin-price-data-demo-app\n   ```\n\n2. (Optional) Create and activate a virtual environment:\n   ```bash\n   python -m venv env\n   source env/bin/activate  # On Windows: .\\env\\Scripts\\activate\n   ```\n\n3. Install dependencies:\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n4. Run the app:\n   ```bash\n   streamlit run data-app-demo.py\n   ```\n\n---\n\n## 📦 Sample Data\n\nIf you don’t upload a file, the app will use `demo_logistics_data.csv` located in the same folder. Make sure it’s present in the root directory.\n\n---\n\n## 🛠️ Tech Stack\n\n- **Streamlit**: UI and app engine\n- **pandas**: Data manipulation\n- **matplotlib**: Visualizations\n- **sqlite3**: In-memory SQL engine\n\n---\n\n## 📚 Why This Project?\n\nThis project was created to **practice and demonstrate key technical skills** in a compact and professional way as part of my personal portfolio.\n\n---\n\n## 📬 Feedback \u0026 Contributions\n\nFeel free to fork the repo, try it out, and share feedback or improvements!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeuner%2Fmargin-price-data-demo-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyeuner%2Fmargin-price-data-demo-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeuner%2Fmargin-price-data-demo-app/lists"}