hey everyone, i am trying to get this script to work, but i'm not very familiar with Python.. can someone please help me figure out how to print the output of this function to alteryx?
ive attached a workflow

from ayx import Package
from ayx import Alteryx
from statsmodels.tsa.statespace.sarimax import SARIMAX
df = Alteryx.read("#1")
df
x = df['X']
data = df['Y']
# SARIMA example
# contrived dataset
# fit model
model = SARIMAX(data, order=(1, 1, 1), seasonal_order=(0, 0, 0, 0))
model_fit = model.fit(disp=False)
# make prediction
yhat = model_fit.predict(len(data), len(data))
df['a'] = yhat
Alteryx.write(df, 1)