Book Image

Mastering Pandas for Finance

By : Michael Heydt
Book Image

Mastering Pandas for Finance

By: Michael Heydt

Overview of this book

Table of Contents (16 chapters)
Mastering pandas for Finance
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Notebook setup


The examples in this chapter will be based upon the following configuration in IPython. One main difference in this setup is that in this chapter, we will be using SciPy, specifically its optimization and statistical features, so this has imports that are required for several of the examples:

In [1]:
   import pandas as pd
   import numpy as np
   import pandas.io.data as web
   from datetime import datetime

   import scipy as sp
   import scipy.optimize as scopt
   import scipy.stats as spstats

   import matplotlib.pyplot as plt
   import matplotlib.mlab as mlab
   %matplotlib inline

   pd.set_option('display.notebook_repr_html', False)
   pd.set_option('display.max_columns', 7)
   pd.set_option('display.max_rows', 10) 
   pd.set_option('display.width', 82) 
   pd.set_option('precision', 3)