Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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.
Solved! Go to Solution.
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
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.
Hi @Anonymous ,
Would you please try to set the privacy level for the source data to public?
If this post help, please consider accept it as the solution to help others find it more quickly.
Best Regard,
Dedmon Dai
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
63 | |
59 | |
56 | |
38 | |
29 |
User | Count |
---|---|
82 | |
62 | |
45 | |
41 | |
40 |