Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Running Python Code in Alteryx

SteveFord
7 - Meteor

Hey all, I would like to run the code attached in an Alteryx flow. I would bring in a dataset with a column named job title and want this code to output enriched data (Job Function, Department etc as described in the code).

Attached is the file I am bringing in, I would like the flow to output the same data but with the additional columns. I don't have python coding knowledge, when I put this code in I get an error: ModuleNotFoundError: No module named 'nltk'

 

3 REPLIES 3
apathetichell
19 - Altair

o.k. - try adding it to the python tool?

tristank
11 - Bolide

Hi Steve,

 

A python tool is a great place to start. Your code may need to be slightly modified to work with Alteryx (i.e. Alteryx package). If the code can generate the output you need then you could use a Run Command tool as well and input that into the workflow.

 

Overall you may want to be more specific about what you need from the community. Context always helps.

 

Thanks,

Tristan

SteveFord
7 - Meteor

Many thanks for your reply, I have updated my post.

Labels
Top Solution Authors