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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
Anonymous
Not applicable

Connection to Python using Anaconda

 So I'm trying to run a basic python script via PowerBi and I am using Anaconda in the background.

 

I get the error:

 

"We encountered an error while trying to connect. Details: "ADO.NET: Python script error. 

 

<pi> File "PythonScriptWrapper.PY", line 13

 

import pandas as pd\u200b

 

^

 

SyntaxError: invalid character in identifier

 

</pi>"

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous 

Did you follow the script requirements below ?

  1. The output must be a Panda’s dataframe, and it cannot be nested
  2. The script cannot run longer than 30 minutes or require interactive calls
  3. End the script with print(df

Ailsamsft_0-1633498871029.png

Best Regards

Community Support Team _ Ailsa Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous 

Did you follow the script requirements below ?

  1. The output must be a Panda’s dataframe, and it cannot be nested
  2. The script cannot run longer than 30 minutes or require interactive calls
  3. End the script with print(df

Ailsamsft_0-1633498871029.png

Best Regards

Community Support Team _ Ailsa Tao

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

HarishKM
Memorable Member
Memorable Member

@Anonymous Hey,
You can use this method to fullfill your requirement .
Python in Power BI: Enabling Python Scripts with Anaconda — Continuus Technologies (continuus-techno...


If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.


Best regards,
Harish Mishra

 

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.