filter pandas dataframe by datetime code example
Example 1: padas df filter rows by date
df['20160101':'20160301']
Example 2: pandas df filter by time hour
dataset[dataset.index.hour == 9]
df['20160101':'20160301']
dataset[dataset.index.hour == 9]