Forum Discussion
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>"
- Anonymous4 years ago
Hi Anonymous
Did you follow the script requirements below ?
- The output must be a Panda’s dataframe, and it cannot be nested
- The script cannot run longer than 30 minutes or require interactive calls
- End the script with print(df
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.
2 Replies
- HarishKMSuper User
Anonymous Hey,
You can use this method to fullfill your requirement .
Python in Power BI: Enabling Python Scripts with Anaconda — Continuus Technologies (continuus-technologies.com)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 - AnonymousNot applicable
Hi Anonymous
Did you follow the script requirements below ?
- The output must be a Panda’s dataframe, and it cannot be nested
- The script cannot run longer than 30 minutes or require interactive calls
- End the script with print(df
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.