Kapacitor UDF as Arima model

Hello

Iwant to ask you what mean this error : “Error: myarima2: error processing request of type end: index 1 is out of bounds for axis 0 with size 1”

and what i do to resolve it ?

Thank you