Giter Site home page Giter Site logo

joekimga / python-api-challenge Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 7.9 MB

This project uses the data from 500+ cities to showcase the relationships between Temperature, Humidity, Cloudiness, and Windspeed. Python, Pandas, Jupyter Notebook, Matplotlib, and Gmaps were used in this project.

Jupyter Notebook 100.00%

python-api-challenge's Introduction

Python API - What's the Weather Like?

Background

Python requests, APIs, and JSON traversals to answer a fundamental question: "What's the weather like as we approach the equator?"

Now, we know what you may be thinking: "Duh. It gets hotter..."

But, if pressed, how would you prove it?

Equator

Part I - WeatherPy

In this example, I created a Python script to visualize the weather of 500+ cities across the world of varying distance from the equator. To do this, I utilized a simple Python library, the OpenWeatherMap API, to create a representative model of weather across world cities.

Scatter plots were used to showcase the following relationships:

  • Temperature (F) vs. Latitude

  • fig1

  • Humidity (%) vs. Latitude

  • fig2

  • Cloudiness (%) vs. Latitude

  • fig3

  • Wind Speed (mph) vs. Latitude

  • fig4

A Linear regression was run on each relationship. The plots in the Northern Hemisphere was greater than or equal to 0 degrees latitude and Southern Hemisphere was less than 0 degrees latitude.

  • Northern Hemisphere - Temperature (F) vs. Latitude
  • Southern Hemisphere - Temperature (F) vs. Latitude
  • Northern Hemisphere - Humidity (%) vs. Latitude
  • Southern Hemisphere - Humidity (%) vs. Latitude
  • Northern Hemisphere - Cloudiness (%) vs. Latitude
  • Southern Hemisphere - Cloudiness (%) vs. Latitude
  • Northern Hemisphere - Wind Speed (mph) vs. Latitude
  • Southern Hemisphere - Wind Speed (mph) vs. Latitude

Part II - VacationPy

Jupyter-gmaps and the Google Places API was used for this part of the assignment.

  • Note: if you having trouble displaying the maps, try running jupyter nbextension enable --py gmaps in your environment and retry.

    heatmap

  • The DataFrame was narrowed down to find the ideal weather conditions. For example:

    • A max temperature lower than 80 degrees but higher than 70.

    • Wind speed less than 10 mph.

    • Zero cloudiness.

python-api-challenge's People

Contributors

joekimga avatar

Watchers

 avatar  avatar

Forkers

mypham14

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.