Microsoft's Python in Excel allows you to combine Python and Excel analytics within the same workbook

Reading time icon 2 min. read


Readers help support MSpoweruser. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help MSPoweruser sustain the editorial team Read more

Microsoft Python in Excel

Microsoft today revealed the much-awaited Python in Excel feature that will allow users to combine Python and Excel analytics within the same workbook.

This is a huge news in the world of analytics. Microsoft Excel remains an essential tool to organize, manipulate and analyze different kinds of data. And Python is one of the most popular programming languages used for analytics. But, until now, there hasn’t been an easy way to use Python and Excel together. This new Python in Excel feature integrates Python and Excel analytics within the same Excel grid for seamless analytics.

Using this new feature, users can manipulate and explore data in Excel using Python plots and libraries like Matplotlib and seaborn, and then also use Excel’s familiar formulas, charts and PivotTables features to further refine their insights. To get started with this feature, users can just use the new PY function that will allow them to input Python code directly into Excel cells.

Python code used by Excel runs on the Microsoft Cloud in its own hypervisor isolated container using Azure Container Instances and secure, source-built packages from Anaconda. So, your data remains private always. Also, to make it secure, data from your workbooks can only be sent via the built-in xl() Python function, and the output of the Python code can only be returned as the result of the =PY() Excel function.

“I’m excited that this excellent, tight integration of Python and Excel is now seeing the light of day. I expect that both communities will find interesting new uses in this collaboration, amplifying each partner’s abilities. When I joined Microsoft three years ago, I would not have dreamed this would be possible. The Excel team excels!,” said Guido van Rossum, Python’s creator, emeritus BDFL and now Microsoft Distinguished Engineer.

Microsoft 365 Insiders can now access the new Python in Excel feature during the preview program, and it will be included as part of Microsoft 365 subscription. Microsoft will reveal more details before the general availability of this feature.

More about the topics: Exce, microsoft, Python in Excel

Leave a Reply

Your email address will not be published. Required fields are marked *