Code Monkey home page Code Monkey logo

mod-1-review's Introduction

Phase 1 Review

Today we will be reviewing the following topics:

  1. SQL ๐Ÿ“š
  2. APIs ๐Ÿ“ก
  3. Pandas ๐Ÿผ

Tasks

For this review, please deliver the following:

  1. A dataframe containing all stock prices for 2017.

    • Please report if any columns have null values.
    • Drop any null values from this dataframe.
  2. Find the top ten single day stock increases in 2017.

  3. A plot showing how many observations in the data occur on a US public holiday.

    • Please print the names of the public holidays that are found within the dataset.
  4. A statement clarifying whether or not the BDX stock rose or fell on Veterans day of 2017.

    • Please state what the opening and closing price for the stock was on Veterans day, and by how much it changed.
  5. A subplot containing two graphs.

    • Plot 1: The top ten stock price declines on veterans day of 2017
    • Plot 2: The top ten stock price increases on veterans day of 2017

Please ensure every plot has a contextualizing title

How will you do this?

You have been given a database called stocks.db within the data/ folder of this repo.

  • This database contains the opening and closing prices for the S&P 500 from 2013-2018.

For data on public holidays, you are to use The Public Holidays API which provides public holiday information for approximately 90 countries.

The documentation for this API can be found here

By combining data from these two sources, you will have the data required to complete the above tasks.

DATABASE SCHEMA

Please complete the above tasks below.

Sections have been provided to offer some guidance and structure as you work through this problem.

Import Libraries

# Your work goes here
# Feel free to add more cells!

Task 1 - Data Collection

Query Database

# Your work goes here
# Feel free to add more cells!

Task 2 - Find the top ten

In the cell below, Find the top ten single day stock increases and visualize the results as a sorted bar plot.

The visualization should look something like this:

Public Holiday API

# Your work goes here
# Feel free to add more cells!

Task 3.1 - How many observations fall on a public holiday?

# Your work here!

Task 3.2 - What holidays are found in this dataset?

# Your work here!

Task 4 - A statement clarifying whether or not the BDX stock rose or fell on Veterans day of 2017.

# Your code here

Task 5 - Plot the top ten prices increases and decreases via subplots

Please create a code cell below to meet this task

mod-1-review's People

Contributors

joelsewhere avatar mattcarr17 avatar

Watchers

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