Skip to content

Instantly share code, notes, and snippets.

@kperry2215
Created January 13, 2020 03:21
Show Gist options
  • Save kperry2215/7d575ea2a6d8fdc2254e6322a165033e to your computer and use it in GitHub Desktop.
Save kperry2215/7d575ea2a6d8fdc2254e6322a165033e to your computer and use it in GitHub Desktop.
import quandl
import pandas as pd
import matplotlib.pyplot as plt
quandl_api_key = "YOUR API KEY HERE"
#Use the Quandl API to pull data
quandl.ApiConfig.api_key = quandl_api_key
data = quandl.get_table('WIKI/PRICES', ticker = ['MSFT'])
plot_data(df = data,
x_variable = "date",
y_variable = "open",
title ="Daily Microsoft Stock Prices, Open Price")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment