Python Script in Power BI
It's great that Power BI already has the capability to run R scripts for data transformation. It would be even better if we could run Python script.
And now the preview is out! Read about our various integration points for Python here: https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-august-2018-feature-summary/#python
We’ll close out the idea once we make the experience generally available in the coming months.
I am very lucky that this feature already is in preview stage.
Been testing a little bit, and i could use some of my most used python scripts with only little modification.
Most of them were running fine.
Good job and a big "Thank you"!
B. Buil commented
After executing the Power BI update of 16-09-2018, the whole system was crashing time after time.
I have removed the latest updated version of 16-9-2018 and I have installed the old version of 1-9-2018 back again and the system was stable as before…...
It would be great if we could access all tables in our data model to create custom measures in Python. At this point it seems that you can ETL one table at a time in the import phase, and create visuals in the visual element. If we can write python functions to act as DAX functions I think this will be very useful.
@Peter, The documentation still seems a bit sparse. You'll need pandas and matplotlib to make Py visualizations. If you're running Anaconda you should be fine. There seems to be an issue with locale settings if you're based in a country where comma as decimal separator is the norm. So if you install Anaconda and check your locale settings, you should be able to make the same chart that is shown in the Power BI desktop august feature summary.
Python visuals are currently supported only in Power BI Desktop. I tried putblishing to Power BI on the web, but I only got that exact error message with a link directing me to a page about R visualizations. So as I said, the documentation seems a bit sparse.
Check out these resources:
Some issues to be aware of:
Link in the error message from Power BI services:
Is there any documentation on this? Like a list of packages supported? Do the visuals work in the service?
The preview worked great for me! One thing that would make it easier to use would be to enable the drop-down ability like in a python editor i.e. when I type "pandas." I get a drop-down list of the pandas functions. Thank you so much for creating this capability!
Thomas LeBlanc commented
I am getting an error no module named 'pandas'
enhorabuena.... mucho esperar.... ahora la documentación para sacar el máximo provecho.... felicitaciones al equipo.. un humilde usuario
will this support something like Bokeh?
cool! thank you
Chris Zumbika commented
Gerard Quinn commented
Fantastic, will it be in the next version of the Power BI on-Prem Server?
@Anonymous, I suspected that since the July feature summary was released July 23 and there's been a lot of talk about a 'Py' indicator being available as a visualization option under the Microsoft Business Applications Summit 2018 presentations. But if you use the download link from the July 2018 feature Summary, Python support will be available: https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-july-2018-feature-summary/ Or at least it was when I ran an update this morning.
@Arne, it looks like you caught the August update early through the Windows store -- this feature was not included in the July update. :)
Mohamed Ali Hefnawy commented
'Python support' is already available under the Preview features in the july update. I'm really glad to see that 'Run Python Script' is also available under Edit Queries / Transform, and not just as a 'Py Visualization' feature. But I'm hoping that the Power BI team doesn't stop there, and that you keep working with an even deeper Python / Power BI integration!
Larry Clark commented
Re: Amanda's note of 8/7/18: Awesome! That'll be a breakthrough in the flexibility of this already wonderful tool!
this is great news!
Kawabata Yoshihiro commented
Awesome, 'STARTED' status