Forum Discussion
Python visual error
- 3 years ago
I found out there was a bug in my code. the order of the columns in the CSV was different than the order in the dataset so this code addressed the wrong column - phase_name = d.iloc[0,1]
. the visual is working now.
Hi, nadavsnn ;
if it works in pycharm. Before you can use R or Python in Power BI Desktop, you need to have the language, along with any packages you want to use, installed on your computer.
How to Use R and Python in Power BI | Power BI Languages (iterationinsights.com)
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- nadavsnn3 years agoFrequent Visitor
hi, Python is installed on my PC. the original script that is addressing the CSV file is even working on the report/ I get the error when I switch to the real dataset in the report instead of the CSV file (that was exported from the real dataset).