{"id":17026730,"url":"https://github.com/rileynwong/forecasting-coffee-prices","last_synced_at":"2026-06-20T04:32:04.347Z","repository":{"id":78459513,"uuid":"176561644","full_name":"rileynwong/forecasting-coffee-prices","owner":"rileynwong","description":"Predict coffee prices in Kenya ","archived":false,"fork":false,"pushed_at":"2019-03-19T17:29:41.000Z","size":884,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T19:17:10.351Z","etag":null,"topics":["data","data-analysis","data-scraping","data-visualization","forecasting","forecasting-models","forecasting-prices","jupyter-notebook","prophet","prophet-model"],"latest_commit_sha":null,"homepage":null,"language":"Jupyter Notebook","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/rileynwong.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}},"created_at":"2019-03-19T17:06:40.000Z","updated_at":"2019-04-15T22:11:16.000Z","dependencies_parsed_at":"2023-08-30T04:32:44.043Z","dependency_job_id":null,"html_url":"https://github.com/rileynwong/forecasting-coffee-prices","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"4953370049df5beb3c2f5999679322504519e4fc"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rileynwong/forecasting-coffee-prices","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rileynwong%2Fforecasting-coffee-prices","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rileynwong%2Fforecasting-coffee-prices/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rileynwong%2Fforecasting-coffee-prices/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rileynwong%2Fforecasting-coffee-prices/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rileynwong","download_url":"https://codeload.github.com/rileynwong/forecasting-coffee-prices/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rileynwong%2Fforecasting-coffee-prices/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34557551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"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","data-analysis","data-scraping","data-visualization","forecasting","forecasting-models","forecasting-prices","jupyter-notebook","prophet","prophet-model"],"created_at":"2024-10-14T07:34:17.966Z","updated_at":"2026-06-20T04:32:04.330Z","avatar_url":"https://github.com/rileynwong.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Projecting Coffee Prices in Kenya\nUsing data from the Nairobi Coffee Exchange for coffee prices from 2014-2018, scrape data from PDFs, and forecast future coffee prices for the 2018-2019 session.\n\nUses [Tabula](https://github.com/chezou/tabula-py) for data scraping and [Prophet](https://github.com/facebook/prophet/) for time-series forecasting.\n\nFor easy viewing:\n- [NBViewer for PDF_to_CSV.ipynb](https://nbviewer.jupyter.org/github/rileynwong/forecasting-coffee-prices/blob/master/PDF_to_CSV.ipynb)\n- [NBViewer for Predicting_Coffee_Prices.ipynb](https://nbviewer.jupyter.org/github/rileynwong/forecasting-coffee-prices/blob/master/Predicting_Coffee_Prices.ipynb)\n\n\n### Setup\n- Create and activate a new virtual environment:\n  - `$ conda create -n coffee_env python=3`\n  - `$ conda activate coffee_env`\n\n- Install project dependencies:\n  - `$ conda install gcc; conda install -c conda-forge fbprophet`\n  - `$ pip install -r requirements.txt`\n\n\n### File Overview\n- [PDF_to_CSV.ipynb](PDF_to_CSV.ipynb): Jupyter notebook that parses and cleans the data from the PDF files into a CSV file.\n- [Predicting_Coffee_Prices.ipynb](Predicting_Coffee_Prices.ipynb): Jupyter notebook that plots the monthly average prices for grade AA, AB, and C coffee, and forecasts the coffee prices for 2018-2019.\n- [Projecting_Coffee_Prices_in_Kenya.pdf](Projecting_Coffee_Prices_in_Kenya.pdf): PDF report summarizing findings.\n- [monthly_coffee_prices.csv](monthly_coffee_prices.csv): Resulting dataset from parsing PDF files.\n- [pdfs/](pdfs/): Directory of original PDF files.\n- [predictions/](predictions/): Directory of CSV files containing predictions for the 2018-2019 session for grade AA, AB, and C coffee.\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frileynwong%2Fforecasting-coffee-prices","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frileynwong%2Fforecasting-coffee-prices","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frileynwong%2Fforecasting-coffee-prices/lists"}