Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shivabajelan/weather-and-vacation-analysis

Module 6 challengeThis project involved using Python and an API to investigate weather trends near the equator by collecting and analyzing weather data. The analysis helped to draw conclusions and provide insights into the factors affecting weather trends in this region.
https://github.com/shivabajelan/weather-and-vacation-analysis

api geoapify json-api pandas python

Last synced: about 3 hours ago
JSON representation

Module 6 challengeThis project involved using Python and an API to investigate weather trends near the equator by collecting and analyzing weather data. The analysis helped to draw conclusions and provide insights into the factors affecting weather trends in this region.

Awesome Lists containing this project

README

        

# Weather-and-Vacation-Analysis
This project aims to analyse weather data of various cities to understand the relationship between weather variables and the latitude of the cities. We also utilise the analysed data to plan future vacations by selecting ideal weather conditions for our trip and finding hotels in the cities that meet our criteria.

## Part 1: WeatherPy
In this part, we create a Python script to visualize the weather of over 500 cities of varying distances from the equator using the citipy Python library, the OpenWeatherMap API, and our problem-solving skills.

We generate scatter plots to showcase the following relationships:

##### Latitude vs. Temperature
##### Latitude vs. Humidity
##### Latitude vs. Cloudiness
##### Latitude vs. Wind Speed
We also compute linear regression for each relationship, separating the plots into Northern Hemisphere (greater than or equal to 0 degrees latitude) and Southern Hemisphere (less than 0 degrees latitude).

## Part 2: VacationPy
In this part, we use our weather data to plan future vacations. We use Jupyter notebooks, the geopandas Python library, and the Geoapify API to create map visualizations of our ideal vacation spots.

We narrow down the city_data DataFrame to find our ideal weather conditions and use the Geoapify API to find the first hotel located within 10,000 meters of our coordinates.

## Getting Started
###### Clone the repository to your local machine.
###### Install the required libraries: pandas, numpy, matplotlib, seaborn, requests, citipy, and geopandas.
###### Obtain API keys for OpenWeatherMap and Geoapify.
###### Create an api_keys.py file in the project directory and add your API keys as variables.
###### Open the WeatherPy.ipynb and VacationPy.ipynb Jupyter notebooks to explore the analyses and visualizations.
###### Technologies Used
###### Python
###### Jupyter Notebooks
###### Pandas
###### Numpy
###### Matplotlib
###### Seaborn
###### Requests
###### Citipy
###### Geopandas
###### OpenWeatherMap API
###### Geoapify API