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

  • Hands On: New VS Code Insiders Build Creates Web Page from Image in Seconds

    New Vision support with GitHub Copilot in the latest Visual Studio Code Insiders build takes a user-supplied mockup image and creates a web page from it in seconds, handling all the HTML and CSS.

  • Naive Bayes Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the naive Bayes regression technique, where the goal is to predict a single numeric value. Compared to other machine learning regression techniques, naive Bayes regression is usually less accurate, but is simple, easy to implement and customize, works on both large and small datasets, is highly interpretable, and doesn't require tuning any hyperparameters.

  • VS Code Copilot Previews New GPT-4o AI Code Completion Model

    The 4o upgrade includes additional training on more than 275,000 high-quality public repositories in over 30 popular programming languages, said Microsoft-owned GitHub, which created the original "AI pair programmer" years ago.

  • Microsoft's Rust Embrace Continues with Azure SDK Beta

    "Rust's strong type system and ownership model help prevent common programming errors such as null pointer dereferencing and buffer overflows, leading to more secure and stable code."

  • Xcode IDE from Microsoft Archrival Apple Gets Copilot AI

    Just after expanding the reach of its Copilot AI coding assistant to the open-source Eclipse IDE, Microsoft showcased how it's going even further, providing details about a preview version for the Xcode IDE from archrival Apple.

Subscribe on YouTube

Upcoming Training Events