Skip to content

The aim of this project was to determine how latitude affects temperature, humidity, cloud cover, and windspeed. We were then to use this data to find our ideal vacation cities based on weather and find a hotel in each of those cities.

Notifications You must be signed in to change notification settings

anyren/weather_analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather Analysis

The aim of this project was to determine how latitude affects temperature, humidity, cloud cover, and windspeed. We were then to use this data to find our ideal vacation cities based on weather and find a hotel in each of those cities.

Generate List of Cities and Query API for Weather Data

The first step was to generate a list of random cities using the citipy library. These cities were then used to query the OpenWeatherMap API to retrieve weather data for the cities where such data was available. The results were put into a dataframe that contained 550 cities across the globe.

cities

Graph Latitude vs X

I used Matplotlib to graph latitude versus the four weather condidtions for all cities in the dataframe.

temperature

Then I split the data based on hemisphere and performed linear regressions for all four weather conditions for both hemispheres separately.

southern hemisphere temp regression

Determine Ideal Vacation Spots

The first task of this part of the assignment was to make a heatmap of max humidity levels using GoogleMaps API:

heatmap

Using my own criteria, I queried the data frame for cities that matched my ideal vacation weather. I narrowed my criteria such that only a handful of cities would be returned. I used the GoogleMaps API nearby endpoint to find hotels for each city in my list. I took the hotel closest to the city center, appended that information to my dataframe, and mapped each hotel:

hotel map

Analyses are in WeatherPy.ipynb and VacationPy.ipynb
output_data directory contains scatter plots, linear regressions, and csv of data from the weather analysis.
maps directory contains screenshots of the maps from the vacation analysis

About

The aim of this project was to determine how latitude affects temperature, humidity, cloud cover, and windspeed. We were then to use this data to find our ideal vacation cities based on weather and find a hotel in each of those cities.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published