Weather Analysis: Created a dataset of 500+ random cities using OpenWeatherMap API to analyze weather patterns as a function of equatorial distance.
Vacation Analysis: Filtered cities based on weather variables and used GoogleMaps API to find and map my ideal vacation spots.
Data Analysis, linear regression and visualizations conducted using Python, Pandas, Citipy, Plotly, Gmaps, and Matplotlib.
Used Python, Numpy, and Citipy to generate a list of 500+ cities based on random latitude and longitude coordinates.
Made an API call (get request) on 7/12/2020 to OpenWeatherMap to grab weather data for each of the cities which was then converted into a pandas dataframe.
Used Matplotlib to conduct simple linear regression analysis on the input variable (latitude) and our four dependent variables (max temperature, humidity, cloudiness, wind speed) accross two groups (northern hemisphere and southern hemisphere).
-
There is a significant correlation between latitude and Max Temp as run on July 12, 2020, so that the further away from the equator, the warmer the max temperature. The effect size is stronger in the southern hemisphere (r2 = .65), than in the northern (R2 = .44)
-
Latitude is not a significant preditor of Humidity, Cloudiness, or Wind Speed
-
As the weather data was pull in July, additional analysis could be conducted by using the same list of cities and calling the API during the winter to see if time of year impacts the strength of the relationships between the variables.
Based on my ideal weather conditions for a pleasant vacation, I created a heatmap using Gmap, filtered the data down to five cities, and used the Google Maps API to locate the nearest lodging and added them to the heatmap as a marker layer.
Used Gmaps, Python, and Pandas to create a heatmap of the 500+ cities based on humidity.
Filtered the cities dataset by ideal conditions for wind speed, humidity, cloudiness, and max daily temperature resulting in a list of five cities.
Used a GoogleAPI get request to locate one lodging within each of the five cities. Appended the lodging as a marker onto the heatmap.
Contact:
Michael Occhicone: mpocchicone@gmail.com