cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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

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.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors