murders.index = raw_data['date']
plt.figure(figsize=(18, 6))
murders.resample('W-MON').count().plot()
min_date = min(murders.index)
release_date = datetime.strptime('2015-11-24 12:00:00', '%Y-%m-%d %H:%M:%S')
max_date = max(murders.index)
pylab.axvspan(min_date, release_date, facecolor='g', alpha=0.05)
pylab.axvspan(release_date, max_date, facecolor='r', alpha=0.075)
pylab.show()
Plotting Grouped Datetime - Pandas