{"id":22937834,"url":"https://github.com/dimitryzub/walmart-stores-coffee-analysis","last_synced_at":"2026-05-10T06:53:21.399Z","repository":{"id":134186068,"uuid":"557143638","full_name":"dimitryzub/walmart-stores-coffee-analysis","owner":"dimitryzub","description":"Walmart Coffee Exploratory Data Analysis. Data Extracted with SerpApi 🧡","archived":false,"fork":false,"pushed_at":"2022-10-25T10:09:01.000Z","size":1104,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T12:39:14.517Z","etag":null,"topics":["analysis","analytics","data","data-visualization","matplotlib","pandas","python","pythonanalysis","seaborn"],"latest_commit_sha":null,"homepage":"https://serpapi.com/blog/serpapi-demo-project-walmart-coffee-exploratory-data-analysis/","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dimitryzub.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}},"created_at":"2022-10-25T06:42:41.000Z","updated_at":"2022-10-28T21:26:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"4d462ffd-fa2c-4e71-ac06-7046aebe8897","html_url":"https://github.com/dimitryzub/walmart-stores-coffee-analysis","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimitryzub%2Fwalmart-stores-coffee-analysis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimitryzub%2Fwalmart-stores-coffee-analysis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimitryzub%2Fwalmart-stores-coffee-analysis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimitryzub%2Fwalmart-stores-coffee-analysis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimitryzub","download_url":"https://codeload.github.com/dimitryzub/walmart-stores-coffee-analysis/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246700071,"owners_count":20819819,"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":["analysis","analytics","data","data-visualization","matplotlib","pandas","python","pythonanalysis","seaborn"],"created_at":"2024-12-14T12:14:45.207Z","updated_at":"2026-05-10T06:53:16.336Z","avatar_url":"https://github.com/dimitryzub.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Walmart Stores Coffee Analysis\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/78694043/197740034-7da619f9-3155-4c6f-8a8c-4183914ee052.png\" /\u003e\n\u003c/p\u003e\n\nThis Python demo project is a practical showcase of using [SerpApi's](https://serpapi.com/) [Walmart Search Engine Results API](https://serpapi.com/walmart-search-api) plus how extracted data could be used in exploratory data analysis.\n\nThis repo covers:\n\n1. [Extracting data from Walmart Organic results](https://github.com/dimitryzub/walmart-stores-coffee-analysis/blob/74d06e8016c1903ff53bfbde0263f98264baca1c/script/extraction.py).\n2. [Extracting data from all store pages using SerpApi pagination](https://github.com/dimitryzub/walmart-stores-coffee-analysis/blob/74d06e8016c1903ff53bfbde0263f98264baca1c/script/extraction.py#L190-L195).\n3. [Extracting data from 500 Walmart stores](https://github.com/dimitryzub/walmart-stores-coffee-analysis/blob/74d06e8016c1903ff53bfbde0263f98264baca1c/script/walmart-stores.json). [SerpApi provides JSON Walmart Stores Locations](https://serpapi.com/walmart-stores) with 4.460 stores in total.\n4. [My full process of exploratory data analysis](https://github.com/dimitryzub/walmart-stores-coffee-analysis/blob/68a28ee3fe55372194076a2177a75d7502b26f5a/analysis/walmart-coffee-analysis.ipynb).\n\nThere's also a full blog post that also shows data extraction steps: https://serpapi.com/blog/serpapi-demo-project-walmart-coffee-exploratory-data-analysis/#extracting-walmart-data\n\nKaggle Dataset: https://www.kaggle.com/datasets/dimitryzub/walmart-coffee-listings-from-500-stores\n\n## Key Takeaways\n\n1. The most popular coffee seller is Walmart.\n2. The most popular coffee type is medium roast. \n3. More weight (grams) doesn't equal higher price.\n    - A lower gram coffee may cost more than a higher gram coffee.\n4. The highest coffee weight is 2835 grams (2.8 kg).\n5. \"Folgers classic roast ground coffee\" has 15k+ reviews which is the maximum value from data set.\n6. ~300-500 grams is the most frequent weight.\n7. The highest coffee price is $77 (Lavazza perfetto single-serve k-cup)\n\n## Data Sources\n\nWalmart. Data was extracted using [Walmart Search Engine Results API](https://serpapi.com/walmart-search-api) from SerpApi.\n\n## Plots\n\n![image](https://user-images.githubusercontent.com/78694043/197485001-8b89ea37-c1fe-44ab-bcc9-6ceaaea0dd53.png)\n\n\n![image](https://user-images.githubusercontent.com/78694043/197485893-40ba9a63-66af-41d0-9bb2-169867ef4ba1.png)\n\n### Most Frequent Weight (~300-500 grams)\n\n![image](https://user-images.githubusercontent.com/78694043/197485990-222d62fa-47ac-43e5-868c-14a3550b8d2d.png)    \n\n![image](https://user-images.githubusercontent.com/78694043/197486235-0eb214f9-aa67-41c5-84f1-acf0288c9e05.png)\n\n### Higher weight = higher price?\n\n![image](https://user-images.githubusercontent.com/78694043/197486297-93733268-0f8c-4e5f-8765-fbe37aac1cbf.png)\n\n![image](https://user-images.githubusercontent.com/78694043/197486373-0d100eaa-da3c-4e43-aa68-16a8f94bc64e.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimitryzub%2Fwalmart-stores-coffee-analysis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimitryzub%2Fwalmart-stores-coffee-analysis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimitryzub%2Fwalmart-stores-coffee-analysis/lists"}