time series analysis in python coupon