I received a CSV file and I had to use Exponential smoothing, moving averages to do a forecast. I made the following code, it works well but it "stops" at the end