In this section, we show you how to handle time series data. Handling involves reading, creating, resampling, and reindexing timestamp data. These tasks need to be performed on timestamp data to make it usable. We will start by showing you how to create time series data using the data read in from a csv file.
Handling time series data
Reading in time series data
In this section, we demonstrate the various ways to read in time series data, starting with the simple read_csv method:
In [7]: ibmData=pd.read_csv('ibm-common-stock-closing-prices-1959_1960.csv') ibmData.head() Out[7]: TradeDate closingPrice 0 1959-06-29 445 1 1959-06-30 448 2 1959-07-01 450 3 1959-07-02 ...