Book Image

Learning pandas - Second Edition

By : Michael Heydt
Book Image

Learning pandas - Second Edition

By: Michael Heydt

Overview of this book

You will learn how to use pandas to perform data analysis in Python. You will start with an overview of data analysis and iteratively progress from modeling data, to accessing data from remote sources, performing numeric and statistical analysis, through indexing and performing aggregate analysis, and finally to visualizing statistical data and applying pandas to finance. With the knowledge you gain from this book, you will quickly learn pandas and how it can empower you in the exciting world of data manipulation, analysis and science.
Table of Contents (16 chapters)

Reading data from remote data services

Pandas prior to 0.19.0 had direct support for various web-based data source classes in the pandas.io.data namespace. This has changed, as the functionality has been refactored out of pandas and into the pandas-datareader package.

This package provides access to many useful data sources, including:

  • Daily historical stock prices from either Yahoo! or Google Finance
  • Yahoo! and Google Options
  • Enigma, a provider of structured data
  • The Federal Reserve Economic Data Library
  • Kenneth French's Data Library
  • The World Bank
  • OECD
  • Eurostat
  • EDGAR Index
  • TSP Fund Data
  • Oanda currency historical rates
  • Nasdaq Trader symbol definitions
Note that because this data is coming from an external data source and that the actual values can change over time, it may be possible that when you run the code, you get different values than those in the book.
...