Syntax Error in Python Tool in Alteryx (One Way Anova Code)
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Shaina1
8 - Asteroid
‎09-21-2022
04:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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/
Labels:
- Labels:
- Bugs & Issues
- Question
- Use Case Support
1 REPLY 1
mpizzorusso
7 - Meteor
‎09-22-2022
11:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
This issue is more with the syntax of your Python code than anything to do with Alteryx. It appears that the error is related to your column names containing spaces. You can use a Dynamic Rename tool beforehand to replace spaces in column names with underscores. See below:
