http://stackoverflow.com/questions/18411110/python-pandas-timeseries-resample-giving-unexpected-results/18411516?noredirect=1#comment27046758_18411516