This challenge was divided in two parts, with the focus being SQLAlchemy and Flask.
The goals for each part of the challenge are listed below:
-
The first part focused on creating SQL queries via SQLAlchemy, saving the results in a panda data frame and finally, analyzing and plotting the results. We queried the SQL database and plotted the following:
- Overall precipitation data, along with a plot showing the precipitation data over date
- Total number of stations
- Most active station
- Lowest, highest and average temperatures for the most active station
- Temperature data for the last 12 months for the most active weather station, along with a histogram
-
The second part focused on Flask. Here, we created multiple API routes for the user to query a sql database for the following:
- Available API Routes
- Overall precipitation data for the last 12 months
- List of weather stations in the database
- Temperature data for the last 12 months for the most active weather station
- Lowest, highest and average temperatures in a given date range