Introducing Copilot support for Python in Excel: Advanced Data Analysis Using Natural Language

  • Thread starter Thread starter David Monroy
  • Start date Start date
D

David Monroy

We recently announced Python in Excel, bringing one of the most powerful programming languages for data analysis to your spreadsheets. We’ve heard your excitement about leveraging AI with Python in Excel, and today we are thrilled to share how we are combining two of the most exciting new features in Excel so you can create powerful analytics with unprecedent ease with Copilot support for Python in Excel.



medium?v=v2&px=400.png

Python code generation with Copilot in Excel



In addition to helping you write formulas, format your data, and do data analysis, Copilot in Excel will help you analyze and explore your data in a new way: writing Python code. Just use everyday language to describe what you want to do with your data, and Copilot will generate and insert working Python code in the Excel grid for you.



Watch Copilot and Python in Excel in action:



Video overview of Copilot leveraging Python in Excel


What can Copilot do with Python in Excel?​


Whether you are new to Python or an experienced user, Copilot helps you achieve more with your data in Excel by accessing advanced analytics. You can use Copilot as a learning tool, to unlock productivity, and as creative inspiration. Here are some of the benefits of using Copilot and Python in Excel:



  • Use natural language for data analysis with Python. Simply describe the analysis you want to do, and Copilot will generate and insert Python code for you. For example, you can type “Forecast sales for the next 4 quarters" and Copilot will produce a Python cell with the code and the forecast.

large?v=v2&px=999.png

Forecasting model using Python in Excel, built with Copilot in Excel



  • Access popular libraries and visualizations. You don't need to know Python to get started. Copilot leverages the power and flexibility of Python and its popular libraries, such as pandas, matplotlib, and scikit-learn to name a few. You can use Copilot to perform advanced analytics such as forecasting, clustering, optimization, causal models, statistical tests, classification, sampling, and more. You can also create a variety of charts that are not available in Excel alone, such as boxplots, network graphs, and pairplots.

large?v=v2&px=999.png

Visualization using Python in Excel, built with Copilot in Excel



  • Break down complex problems iteratively. Use Copilot as your sounding board and guide to perform your data analysis in an iterative fashion. Copilot remembers the context of your previous queries and results, allowing you to continue the conversation with additional analyses, follow-up questions, and ideas.

large?v=v2&px=999.png

Data processing using Python in Excel, built with Copilot in Excel



large?v=v2&px=999.png

Machine Learning model predicting the weather using Python in Excel, built with Copilot in Excel



Building responsibly​


Microsoft 365 Copilot embraces our AI principles and Responsible AI Standard, and it follows our commitment to data security and privacy. Python in Excel runs in a secure container on the Microsoft Cloud with enterprise-level security as a compliant Microsoft 365 connected experience: Data security and Python in Excel - Microsoft Support.


Availability​


Copilot support for Python in Excel will be available in preview later this year.



To use Copilot and Python in Excel, you will need access to Python in Excel (How to enable the Python in Excel preview - Microsoft Support) and Microsoft 365 Copilot (Microsoft 365 Copilot – Microsoft Adoption). It will initially be available in Excel for Windows in English.


Join the Python in Excel Reddit AMA on Sept 28th!​


Tune into our Ask Me Anything session on Reddit, r/excel, for questions, answers and more information on Python in Excel.​

Continue reading...
 
Back
Top