Skip to content

cap015700/PythonAPIs-WeatherPy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WeatherPy

In this example, I created a Python script to visualize the weather of 500+ random (non-repeat) cities across the world of varying distance from the equator by utilizing a simple Python library, the OpenWeatherMap API, and a little common sense to create a representative model of weather across world cities and performing a weather check on each of the cities using a series of successive API calls.

The objective is to build a series of scatter plots to showcase the following relationships:

  • Temperature (F) vs. Latitude

weatherpy1

  • Humidity (%) vs. Latitude

weatherpy2

  • Cloudiness (%) vs. Latitude

weatherpy3

  • Wind Speed (mph) vs. Latitude

weatherpy4

Observable Trends

  • Trend 1 - Temperature vs Latitude Plot shows that the temperatures are higher the closer they are to the equator (latitude range of -20 to 20)
  • Trend 2 - City Latitude vs Windspeed Plot shows that Windspeeds are somewhat indifferent to Latitudes, but it is important to note that highest wind speed outliers all occur at latitudes furthest from the equator.
  • Trend 3 - Based on the data, it seems as though cloudiness and humidity are relatively consistent across all latitudes. Further analysis to include an additional variable may reveal further insights into those relationships

Languages and Tools:

  • Python
  • Pandas
  • Numpy
  • Requests
  • Citipy
  • API Calls
  • Matplotlib
  • Seaborn

Releases

No releases published

Packages

No packages published