Tutorial by Examples

Here is how to create a simple Time Series. import pandas as pd import numpy as np # The number of sample to generate nb_sample = 100 # Seeding to obtain a reproductible dataset np.random.seed(0) se = pd.Series(np.random.randint(0, 100, nb_sample), index = pd.date_ran...
A very handy way to subset Time Series is to use partial string indexing. It permits to select range of dates with a clear syntax. Getting Data We are using the dataset in the Creating Time Series example Displaying head and tail to see the boundaries se.head(2).append(se.tail(2)) # 2016-09-2...

Page 1 of 1