Time Series Analysis Algorithm In Python Step