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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Python in PowerQuery

Hi Community,

I am trying to use a python in power query but getting error.  Please take a look at the attached screenshots.  I am trying to implement a ML model as shown here.  Its even showing the same error for a simple dataframe.  The code is working fine in Spyder notebook.

 

Please help.

 

E1.pngE2.pngE5.pngE3.pngE4.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi all, 

 

This was error with a python package (numpy), which resolved with this post.

View solution in original post

6 REPLIES 6
Anonymous
Not applicable

Hi all, 

 

This was error with a python package (numpy), which resolved with this post.

v-deddai1-msft
Community Support
Community Support

Hi @Anonymous ,

 

I'm not familiar with python. But I found you didn't import numpy in power bi. Could it be the reason?

 

If this post help, please consider accept it as the solution to help others find it more  quickly.

 

Best Regard,

Dedmon Dai

Anonymous
Not applicable

Thank you @v-deddai1-msft for looking into it.

 

I believe that is not the issue because I have not used the numpy in the script.  Again, with addition of "import numpy as np", it is giving the same error.

 

 

v-deddai1-msft
Community Support
Community Support

Hi @Anonymous ,

 

Would you please try to set the privacy level for the source data to public?

Capture6.PNG

 

If this post help, please consider accept it as the solution to help others find it more  quickly.

 

Best Regard,

Dedmon Dai

 

Anonymous
Not applicable

@v-deddai1-msft I have already done this step, still getting the error.

Anonymous
Not applicable

@v-deddai1-msft I have already done this step, still getting the error.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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