I have this dataframe:
sales
0 22.000000
1 25.000000
2 22.000000
3 18.000000
4 23.000000
and want to 'forecast' the next value as a simple numeric to pass it on easily to another code. I thought numpy.polyfit could do that, but not sure how. I am just after something simple.
If numpy.polyfit can do a curve fit, the curve can continue to the next x value. This would give a forecast like in excel. That's good for me.
Unfortunately, numpy.org doesn't say how forecasting is possible, hence asking here :)