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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Python with Power BI

Hello everyone! My question is about testing the connection between Power BI and Python. I want to execute the following script to fetch data:

 

import seaborn as sns

tips = sns.load_dataset("tips")

 

Both Python and seaborn are installed on my machine. However, I'm receiving the following error:

 

"Details: "ADO.NET: ÞУŧћøñ ŝ¢ѓĭρť έřґσŕ. <pi>Traceback (most recent call last): File "C:\Users\Leandro Abraham\PythonScriptWrapper_a0910a4b-8264-4f00-a036-fb32a9031bdc\PythonScriptWrapper.PY", line 2, in <module> import os, pandas, matplotlib ModuleNotFoundError: No module named 'pandas' </pi>"

 

It seems strange to me because I'm not using the Pandas library in my script at all. What could it be? The version of pandas installed is 1.2.4.

 

Thank you!

1 REPLY 1
lbendlin
Super User
Super User

the python engine that you specified in the Power BI Desktop settings needs to have both pandas and matplotlib installed.  This requirement is mentioned in the documentation.

 

Run Python scripts in Power BI Desktop - Power BI | Microsoft Learn

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.