Giter VIP home page Giter VIP logo

vacation_weather's Introduction

Python-API-Challenge

WeatherPy

In this portion of the challenge we were to use Citipy to pull a random list of at least 500 cities and then run it through the OpenWeatherMap API to obtain information about the weather. We then took that information and analyzed it, creating visuals for maximum temperature, humidity, cloudiness, and wind speed according to latitude. Additionally, this data was loaded to a CSV file for further use on the next portion of the challenge. Then, we plotted each of these for both the northern and sounthern hemishperes and calculated the linear regression and variance (r). I observed the following from this data set:

  • Temperature and latitude appear to have the greatest correlation with the maximum temperature appearing to be highest closest to the equator.
  • There is no discernable correlation between wind speed and latitude.
  • There appears to be a small correlation between latitude and both cloudiness and humidity however, I might would compare temperature to humidity and humidity to cloudiness to add to this analysis.

VacationPy

Once the weather analysis was completed, the second portion of this challenge was to pull the data exported to CSV and use it to determine where our next vacation might be. First, all cities were run through Google Maps API to produce a heat map using the maximum humidity as the maximum "heat" on a heatmap.

image

The information was then loaded into a dataframe and filtered based on the following (which are my personal preference for ideal vacation weather):

  • Maximum temperature between 65-80 F
  • Humidity less than 35%
  • Cloudiness less than 20%
  • Wind Speed less than 10mph

The resulting cities dataframe was then evaluated to find a hotel in the area of each of the coordinates listed and a map of the resulting hotels was produced:

image

Then, finally, the map of hotels was overlaid onto the first heatmap:

image

I've always wanted to visit Brazil!!


Contact:

vacation_weather's People

Contributors

scolson82 avatar

Watchers

 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.