cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Leandro Regular Visitor
Regular Visitor

Python Validate Email Error

Hi everyone!

I found this very usefull tutorial on youtube talking about how validate emails with PBI by using a Python script, this i'm getting this error:

EMAIL.PNG

Do you guys knows how to solve this?

the script is very simple:


from validate_email import validate_email

dataset['Valid Email'] = dataset['Email'].apply(lambda x:validate_email(x))


Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Python Validate Email Error

Hi Leandro,

 

Couldn't reproduce your issue. The python script works well on my side. It seems like there's something with your data type, are they text type in your dataset?

2.PNGCapture.PNG 

 

Regards,

Jimmy Tao

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: Python Validate Email Error

Hi Leandro,

 

Couldn't reproduce your issue. The python script works well on my side. It seems like there's something with your data type, are they text type in your dataset?

2.PNGCapture.PNG 

 

Regards,

Jimmy Tao

View solution in original post

Highlighted
Leandro Regular Visitor
Regular Visitor

Re: Python Validate Email Error

@v-yuta-msft

 

Thanks a lot for the atention.

 

After some time, i realized that the problem was really the type as you said.

 

Thanks! Best Regards!

 

Helpful resources

Announcements
October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 135 members 1,631 guests
Please welcome our newest community members: