Forum Discussion
vilenm
4 years agoHelper II
Python script to remove stop words from email body in Power BI
Hi
I am still new to python however, I would want to use AI text analytics function for the body of emails however, I am looking to replace values in body column with python especially stopwords which would require liabrary.
How would one achieve this syntatically :
import nltk
ds = dataset
ds =ds.loc[body].replace(stopwords)
1 Reply
- amitchandakSuper User
vilenm , You need to add table using python script, there you should be able to use python code
How to make Python work with Power BI: https://youtu.be/5D0BkNsu5CM
remove stop words
https://www.geeksforgeeks.org/removing-stop-words-nltk-python/