Git Product home page Git Product logo

shivabajelan / weather-and-vacation-analysis Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.78 MB

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.

License: MIT License

Jupyter Notebook 100.00%
api geoapify json-api pandas python

weather-and-vacation-analysis's Introduction

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

weather-and-vacation-analysis's People

Contributors

shivabajelan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.