https://hanyang2019.github.io/Weather_API/
"What's the weather like as we approach the equator?" Create a Python script to visualize the weather of 500+ cities across the world of varying distance from the equator by using a Python library CityYy and the OpenWeatherMap API.
Build a series of scatter plots to analyze the following relationships:
- Temperature (F) vs. Latitude
- Humidity (%) vs. Latitude
- Cloudiness (%) vs. Latitude
- Wind Speed (mph) vs. Latitude
- City Latitude vs Max Temperature
- City Latitude vs Humidity
- City Latitude vs Cloudiness
- City Latitude vs Wind Speed
- Linear Regression Analysis
-
Although city latitude has a significant linear relationship with wind speed (p value=0.035514 < 0.05), the correlation between them is extremely weak (correlation coefficient=-0.089347) in which it indicates that wind speed decreases with the increase of latitude. Due to limited sample size (approximately 600), the relationship is yet to be confirmed by selecting a larger sample size.
-
City latitude does not have any significant linear relationship with max temperature, humidity nor cloudiness (P values > 0.05).
-
Despite of no linear relationship, it indicates, in the plot of latitude vs max temperature, that city max temperature peaks at latitude of 20 and gradually decreases towards the end of each side.