Links

Get data from API

Tags: #quandl #marketdata #opendata #finance #snippet #matplotlib
Author: Jeremy Ravenel
Last update: 2023-04-12 (Created: 2021-02-28)
Description: This notebook provides a guide to retrieving data from the Quandl API.

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()