Get data from API
Tags: #quandl #marketdata #opendata
Author: Jeremy Ravenel

Input

Install packages

1
!pip install quandl
Copied!

Import libraries

1
import quandl
2
import matplotlib.pyplot as plt
Copied!

Model

Get the data

1
data = quandl.get('EIA/PET_RWTC_D')
Copied!

Output

Show dataframe

1
data
Copied!

Show the graph

1
%matplotlib inline
2
data.plot()
Copied!
Copy link
Edit on GitHub