Article Complete
AIM
Microsoft Integrates Python Support With Power BI Desktop
Microsoft Integrates Python Support With Power BI Desktop

Microsoft Integrates Python Support With Power BI Desktop

Published Updated

Key takeaways

  • Python has been integrated into Microsoft's Power BI Desktop, enhancing its data capabilities.
  • Users can now perform data cleansing, analysis, and visualisation using Python scripts directly within Power BI.
  • The integration allows for advanced data shaping, including handling missing data and predictive analytics.
  • Python visuals in reports update with data refreshes, although they lack interactivity.
  • The update encourages users to explore various Python packages for improved data transformation and visualisation.
5 min
Microsoft Power BI Desktop Python, the programming language widely used by statisticians, data scientists, and data analysts, has now been integrated into Microsoft's Power BI Desktop. This update was announced by way of a feature preview in the August 2018 release of Power BI. Amanda Cofsky, Program Manager with Microsoft Power BI Desktop, announced in the official blog that once the user enabled the feature in the preview settings, they could use Python to do data cleansing, analysis, and visualisation, among others. "The first integration experience we added is the ability to run Python scripts directly in Power BI Desktop to create your data model... The Python integration in the Query Editor lets you perform data cleansing using Python and perform advanced data shaping and analytics in your data, including completion of missing data, predictions, and clustering, just to name a few. Lastly, you can use Python to create new visuals on your report. Just like R visuals, the Python visuals will update with data refreshes and cross-filtering. However, the visual itself is not interactive," wrote Cofsky. https://twitter.com/MSPowerBI/status/1027701275943682053 "With the release of Python inside Power BI, we, the Power BI team have come together to show you some of our favourite python packages. Python is a great addition to the Power BI family by providing you the ability to perform quick data transformation or plot cool data visualisations. You can even expand your Power BI reports further by bringing in sophisticated machine learning and AI," wrote another programme manager Mohammad Ali the blog. Microsoft has also supplied a demo Power BI file with working examples of popular Python packages used to create visualisations and transformations for a sample data set. Included examples feature the Seaborn, Altair, Scikit-learn, FlashText and PyFlux/Pendulum. https://youtu.be/dgv5HhHxxe8
Membership

Stay ahead with AI insights.

Unlimited access to premium articles, exclusive analysis, and the stories shaping India's AI economy.

Subscribe now

AIM Americas

1190 Miraloma Way Suite P, Sunnyvale, CA 94085

AIM India

1st Floor, Sakti Statesman, Bellandur, Bengaluru – 560103

Β© 2026 AIM. All rights reserved.