Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
vilenm
Helper II
Helper 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 1
amitchandak
Super User
Super 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/

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.