Skip to content

thecraigd/Avocado-Prices

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CraigDoesData

Mapping Avocado Prices in the US using Python - GeoPandas, GeoPy and Matplotlib

Data Analysis project mapping price data for avocados onto a map of the USA.

See the blog post that accompanies this analysis on Towards Data Science.

Project status - Complete

Avocado Prices

Introduction

The purpose of this project was to take price data for avocados and to create an attractive and understandable visualisation representing that. I wanted to get to grips with creating maps in Matplotlib, as well as using geocoding locations - taking addresses in text form and finding their coordinates, enabling them to be represented spatially.

I also wanted to take the opportunity to pickle some data so I could gain some experience with this technique, and pull data into my notebook using APIs.

Methods used

  • EDA
  • Data visualisation
  • Geocoding
  • Geographical mapping

Technologies used

  • Jupyter Notebook
  • pandas
  • Geopandas
  • Geopy
  • Matplotlib
  • Shapely
  • pickle

Data Sources

Avocado price data sourced from Kaggle - stored here as avocado.csv

Shape file sourced from United States Census Bureau - these can be found in the root folder of this repository

Get your own Bing Maps API Key here

Getting started

  1. Clone this repo (for help see this tutorial).
  2. Raw Data is kept in the CSV file in the root folder of this repo.
  3. All code is contained within the Jupyter Notebook for this project, stored in the root folder as Avocado Prices.ipynb

Featured Notebooks

Contact

All feedback is warmly received. Craig Dickson can be contacted via his website craigdoesdata.de.

Releases

No releases published

Packages

No packages published