Skip to content

Latest commit

 

History

History
83 lines (39 loc) · 3.43 KB

README.md

File metadata and controls

83 lines (39 loc) · 3.43 KB

python-api-challenge

rainbowclouds

Part I - WeatherPy

In Part I, I used a Python script to visualize the weather of 500+ cities across the world of varying distance from the equator. To accomplish this, I used a simple Python library, and the OpenWeatherMap API to create a representative model of weather across world cities.

Your first requirement is to create a series of scatter plots to showcase the following relationships:

  • Temperature (F) vs. Latitude

temp

  • Humidity (%) vs. Latitude

humidity

  • Cloudiness (%) vs. Latitude

cloud

  • Wind Speed (mph) vs. Latitude

wind

Next I ran linear regression on each relationship, only this time separating them into Northern Hemisphere (greater than or equal to 0 degrees latitude) and Southern Hemisphere (less than 0 degrees latitude):

  • Northern Hemisphere - Temperature (F) vs. Latitude

ntemp

  • Southern Hemisphere - Temperature (F) vs. Latitude

stemp

  • Northern Hemisphere - Humidity (%) vs. Latitude

nhum

  • Southern Hemisphere - Humidity (%) vs. Latitude

shum

  • Northern Hemisphere - Cloudiness (%) vs. Latitude

ncloud

  • Southern Hemisphere - Cloudiness (%) vs. Latitude

scloud

  • Northern Hemisphere - Wind Speed (mph) vs. Latitude

nwind

  • Southern Hemisphere - Wind Speed (mph) vs. Latitude

swind

Observations:

According to the data, there is a correlation between latitude and maximum temperature. The closer a city is to the equator, the higher the max temperature will be.

Other factors tested (cloudiness, humidity and wind speed) do not have a correlation to latitude.


beachy

Part II - VacationPy

For Part II, I used the information found in WeatherPy to determine the ideal destination for a vacation. By narrowing down ideal temperature, cloudiness and wind speed I was able to plot a heat map with hotel information for locations that matched my dream vacation requirements.

Sample of final heat map:

heatmapfun