Hey-I'm a complete newbie to using Python-was attempting to use it within Alteryx-I have a dataset which looks like this, and I'm trying to use the following code using python tool in alteryx-attaching screenshot for reference-I'm getting invalid syntax traceback error-attaching code for reference. Can anyone guide on this please ?
I followed the below link for writing the code-used the statsmodels for it.
https://www.pythonfordatascience.org/anova-python/