Giter Site home page Giter Site logo

sqlalchemy-challenge's Introduction

sqlalchemy-challenge

GA Tech Data Science and Analytics Module 10

This module utilizes a mix of tools such as Python, SQLAlchemy, Pandas, Matplotlib, and Flask to perform a basic analysis and data exploration of a provided SQLite database.

Description: Part 1: Climate Analysis and Exploration

Precipitation Analysis

For this part, we analyze the precipitation data of the previous 12 months.

We then plot the data onto a graph:

Based on the graph, we can see that the months of August, February, and May appear to see the most rainfall.

Station Analysis

For this part, we analyze the station table by identifying the station with the most activity. To do this, we calculate the total number of rows in the dataset for a given station.

We find that station USC00519281 is the most active station.

Then we calculate the lowest, highest, and average temperatures of the most active station. We find that the lowest temperature is 54.0, the highest temperature is 85.0, and the average temperature is 71.66.

As we continue to analyze the data for the most active station, we identify the temperatures for the previous year and plot this onto a histogram to display the frequency of a given temperature.

Based on the histogram, we can conclude that the distribution of temperatures fall around 75.

Description: Part 2: Design Your Climate App

For this part, we use Flask to create API calls for the data that we created queries for in Part 1.

Here are the available routes that we needed to create:

  • /api/v1.0/precipitation
  • /api/v1.0/stations
  • /api/v1.0/tobs
  • /api/v1.0/[start: yyyy-mm-dd]
  • /api/v1.0/[start: yyyy-mm-dd]/[end: yyyy-mm-dd]

The precipitation route lists the dates and precipitation of all results in the database as a dictionary.

The stations route lists the stations from the station table.

The tobs route lists the temperatures of the previous year from the latest year in the dataset.

The start route is a dynamic API that will calculate the temperature min, max, and avg of all results starting from the given date to the end date in the dataset. This route assumes that the input will be in yyyy-mm-dd format.

The start/end route is a dynamic API that will calculate the temperature min, max, and avg of all results starting from the given date to the given end date. This route assumes that the input will be in yyyy-mm-dd format.

The current code will only verify if the end date is after the start date. It will not validate if the date exists in the dataset.

Submission Requirements:

  • Initial data resources provided for module
  • Flask app.py file
  • Jupyter Notebook with analysis

Though two bonuses are provided as an option to complete, they were not completed at time of module submission.

sqlalchemy-challenge's People

Contributors

aimeevu 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.