Giter Club home page Giter Club logo

avocado-prices's Introduction

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

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 Twitter as @craigdoesdata

avocado-prices's People

Contributors

thecraigd avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.