Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
Hello everybody,
It's the first time I try to run a python code on power BI. Actually I have an Excel file as a data source and I want to do some transformations on the original data source but when ever I run the python code I get this error :
even if it's just a simple instruction like this
does anyone have any idea about the issue. thanks in advance
Solved! Go to Solution.
Hi @Anonymous
Thanks for reaching out to us.
Please set up according to this tutorial and check if the previous settings are set correctly, Run Python Scripts in Power BI Desktop - Power BI | Microsoft Learn
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
I got the same error and fixed it by installing the pandas packaging in the anaconda prompt under my environment.
Hi @Anonymous
Thanks for reaching out to us.
Please set up according to this tutorial and check if the previous settings are set correctly, Run Python Scripts in Power BI Desktop - Power BI | Microsoft Learn
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
71 | |
57 | |
38 | |
36 |
User | Count |
---|---|
81 | |
67 | |
62 | |
46 | |
45 |