June 2016
Beginner to intermediate
304 pages
6h 24m
English
We will start by understanding how to convert a sequence of observations into time series data and visualize it. We will use a library called pandas to analyze time series data. Make sure that you install pandas before you proceed further. You can find the installation instructions at http://pandas.pydata.org/pandas-docs/stable/install.html.
import numpy as np import pandas as pd import matplotlib.pyplot as plt
def convert_data_to_timeseries(input_file, column, verbose=False):