Professional Documents
Culture Documents
03 - Introduction To Pandas 1
03 - Introduction To Pandas 1
DataFrames
import numpy as np
%matplotlib inline
pd.options.display.float_format = '{:,.2f}'.format
Note
The data we are using in this example came from a single excel file
The excel file has 3 work sheets in it containing price information for 3 companies: Google, IBM and
Microsoft
All 3 sheets contain the same type of information: daily trading and stock price information from 2010 to
2017
Each set of data has a Date column, which we will use as our index (More on indexes later)
For this example we have already exported each sheet from excel to its own csv file: Google.csv, IBM.csv,
MSFT.csv
We will read in each csv file separately
Later in the course we will cover how to read directly from excel (.xlsx) files.
Selecting data