Quick Remote Data Access Tutorial

Carole Ouedraogo
2 min readJan 29, 2020

--

Introduction

In this series of tutorials, we are looking into simple Data Access tools. This tutorial demonstrates a quick way to import Yahoo Finance data using Pandas packages, as well as two different types of visualizations using matplotlib (1).

The Pandas data_reader package is a great tool if you are looking to quickly create a data frame from various data sources including Yahoo Finance and World Bank. In the examples below, I use the functions from pandas_datareader.data and pandas_datareader.wb to extract the data I need.

Example #1: Stock Price Yahoo Finance (NASDAQ: TSLA)

Using some stock price data from Yahoo Finance this example downloads 2019 stock price trends of Tesla Inc as a DataFrame.

2019 Stock Price Yahoo Finance (NASDAQ: TSLA)
How to display a single column
Visualizing with the plot() method

Sources:

(1) J. D. Hunter, “Matplotlib: A 2D Graphics Environment”, Computing in Science & Engineering, vol. 9, no. 3, pp. 90–95, 2007.

(2) Find more information on different data sources Here

(3) Find World Bank API Basic Call Structures Here

--

--