0

I'm trying to deploy a python model that I built on Jupyter Notebook to Tableau. It's a prediction model that predicts movie revenue. I want to get user inputs from Tableau as inputs to the predictive model and return a prediction. I'm trying to use SCRIPT_REAL to connect to the python model but I keep getting this syntax error.

enter image description here

Here is the script that I wrote:

SCRIPT_REAL("

return tabpy.query('Restaurant_Profitability',_arg1,_arg2,_arg3,_arg4,_arg5,_arg6,_arg7,_arg8)['response']

"

,ATTR([Rating]),ATTR([Genre]),ATTR([Director]),ATTR([Writer]),ATTR([Star]),ATTR([Company]),

AVG([Budget]),AVG([Runtime]))
chiggywiggy
  • 63
  • 1
  • 2
  • 4

0 Answers0