News

Microsoft Previews 'Python in Excel'

The cumbersome process of using Python code in Microsoft Excel data-driven projects will soon be eased by the company's new "Python in Excel" initiative, currently in public preview.

Integrating the super-popular programming language that's the darling of data scientists everywhere with the super-popular spreadsheet program means analysts will no longer have to jump through so many workaround hoops or use third-party add-ins like xlwings, PyXLL or DataNitro.

"Python in Excel combines Python's powerful data analysis and visualization libraries with Excel's features you know and love," Microsoft said. "You can manipulate and explore data in Excel using Python plots and libraries, and then use Excel's formulas, charts and PivotTables to further refine your insights."

With the preview, users can now type Python code directly into a notebook cell and get results such as plots and visualizations from the Microsoft Cloud. As of now, the public preview works only on Excel for Windows (not Mac, web, iPad, iPhone or Android). And the cloud integration means an internet connection is required -- users with a local version of Python installed won't see any customizations made to that installation reflected in Python in Excel calculations. If all of those conditions are met, users can go to Microsoft's Python in Excel site to get started, which requires being in the Microsoft 365 Insiders program and using the Beta Channel in Excel for Windows.

[Click on image for larger view.] Python in Excel (source: Microsoft).

While the program does require using Microsoft's cloud version of Python, it comes with the popular Anaconda enterprise Python repository and many core libraries including pandas, NumPy, Matplotlib, seaborn, scikit-learn and statsmodels.

The project's architecture was guided in part by none other than Guido van Rossum, Python's creator, emeritus BDFL (benevolent dictator for life) and Microsoft Distinguished Engineer. "I'm excited that this excellent, tight integration of Python and Excel is now seeing the light of day," he said in an Aug. 22 announcement post. "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!"

More information can be found in the following resources from Microsoft and Anaconda:

About the Author

David Ramel is an editor and writer at Converge 360.

comments powered by Disqus

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube