Links

Get data from API

Tags: #quandl #marketdata #opendata #finance #snippet #matplotlib
Author: Jeremy Ravenel​

Input

Install packages

!pip install quandl

Import libraries

import quandl
import matplotlib.pyplot as plt

Model

Get the data

data = quandl.get('EIA/PET_RWTC_D')

Output

Show dataframe

data

Show the graph

%matplotlib inline
data.plot()