If the auto_arima is estimated with pd.Series it returns pd.Series from prediction (the same works for np.array). But when the auto_arima is estimated providing the out_of_sample_size parameter, it returns np.array from prediction independent of the object type used in estimation.
Describe the bug
If the
auto_arima
is estimated withpd.Series
it returnspd.Series
fromprediction
(the same works fornp.array
). But when theauto_arima
is estimated providing theout_of_sample_size
parameter, it returnsnp.array
fromprediction
independent of the object type used in estimation.To Reproduce
Versions
Expected Behavior
It seems like the return type of
prediction
should not change due to theout_of_sample_size
parameter.Actual Behavior
The return type of
prediction
depends on theout_of_sample_size
parameter ofauto_arima
.Additional Context
No response