Skip to content

Unable to complete action An error occurred while communicating with the Analytics Extension. Error Code: 6116DD27  #438

@KelvinAduobey

Description

@KelvinAduobey

Issue with Tableau/tabpy-server-0.2-py27_1

Im trying to do an arima forecast but receive this error;

Unable to complete action
An error occurred while communicating with the Analytics Extension.
Error Code: 6116DD27
Error processing script
LinAlgError : SVD did not converge

This is my python script in the calculated field;

SCRIPT_REAL("
import statsmodels.api as sm

import pandas as pd
import numpy as np
import scipy.stats as scs
from datetime import datetime
df = pd.DataFrame({'Date':_arg1, 'NetRevenue':_arg2})
df['NetRevenue'] = df['NetRevenue'].astype('float64')
df['Date'] = pd.to_datetime(_arg2)
df = df[['Date','NetRevenue']].set_index('Date')
df = df.fillna(0)

model=sm.tsa.ARIMA(endog = df['NetRevenue'], order=(min(_arg4),min(_arg5),min(_arg6)))
results=model.fit()
fitted_vals = list(results.fittedvalues.values)

return(fitted_vals)
"
,ATTR([Date]),
ATTR([NetRevenue]),
MIN([Daysforecast]),
MIN([AR (Time Lag)]),
MIN([I (Seasonal Difference)]),
MIN([MA (Moving Average)])
)

Please assist

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions