Updated: September 25, 2023 (September 11, 2023)

  Charts & Illustrations

Python in Excel

My Atlas / Charts & Illustrations

630 wordsTime to read: 4 min
Barry Briggs by
Barry Briggs

Before joining Directions on Microsoft in 2020, Barry worked at Microsoft for 12 years in a variety of roles, including... more

  • Native Python features will enable Excel users to leverage the Python language for data analysis, machine learning, and other tasks.
  • The features are still in preview.

In Aug. 2023, Microsoft announced the preview of native Python features available in Excel. The new capability enables Excel users with Python expertise to use the extensive data analysis, graphics, statistics, and machine learning libraries available for the programming language.

The Python capabilities primarily target data analysts familiar with Python programming metaphors, such as data frames. In the accompanying screenshot, Python code places a range of Excel data (A1:B10) into a data frame, sorts it, deduplicates (aggregates), and calculates the average price (mean). A new Excel function, =py() calls the Python code. Conversely, a new Python function, xl(), enables Python to access spreadsheet data; for example, to apply the Python variable rate to the contents of the cell B5, the code would be rate=xl(B5)).

Atlas Members have full access

Get access to this and thousands of other unbiased analyses, roadmaps, decision kits, infographics, reference guides, and more, all included with membership. Comprehensive access to the most in-depth and unbiased expertise for Microsoft enterprise decision-making is waiting.

Membership Options

Already have an account? Login Now