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
Highlighted
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
Highlighted
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

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
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

January 2020 Community Highlights

January 2020 Community Highlights

Make sure you didn't miss any of the things that happened in the community in January!

Top Solution Authors