Python in Excel now available with Copilot
Pascal Brunner
Let's Copilot Your Day! ?????? | Microsoft Most Valuable Professional (MVP) in M365 Copilot & Viva ??♂? | LinkedIn Top Voice ? | Keynote speaker & Blogger ??
Normally I am afraid of snakes, but this time I felt excitement. ????
Python ?? is here! Let's take a closer look at one of the most requested Copilot features in Excel.
This is really cool! Because now you can get more out of Copilot, like a developer, without having to program. Even though I'm a computer science major, this is even more helpful for me ?? ( David Luescher I wish we had a tool like this during our studies ??)
A snake in Excel? What is happening here?
-- The following section is created by Copilot --
Python is a high-level, interpreted programming language known for its simplicity and readability. Created by Guido van Rossum and first released in 1991, Python emphasizes code readability with its use of significant indentation. This makes it easier to write and understand code, even for beginners.
Key Features of Python:
Why Python is Popular for Data Analysis
Python has become a go-to language for data analysis for several reasons:
--End of Copilot generated content --
Advanced Analysis with Python in Excel
Once we understand that Python is a great language for data analysis, it would be great to use it as well. Two weeks ago it would have been super hard for me to use Python in Excel, but since last week it's done in a few minutes.
?? Here's a shortcut: Want to see the key points in under 2 minutes? watch my video ????
So I have an Excel with sample sales files and now I want to understand and analyze them better.
How to launch Python in Excel with Copilot
Once you open Copilot in Excel, you'll see a new suggested 'prompt' called 'Advanced Analysis'.
After that you have to enter the advanced analysis mode (beast moooooode! ??).
Let the fun begin ??
Now the "magic" happens ?? Copilot and Python start preparing the data to start your advanced analysis.
To perform a deeper analysis, it is essential to explore various aspects of the data. This includes analyzing the distribution of numerical variables, identifying correlations between variables, and examining any potential patterns or trends. The following steps will be taken: 1. Generate summary statistics for the dataset. 2. Visualize the distribution of numerical variables. 3. Calculate and visualize the correlation matrix. 4. Identify any significant patterns or trends in the data.
Let's Python your Day
eeeeh Copilot Your Day ??
Once the summary is created, you can start interacting with Copilot. For example, let's look at the correlation.
?? This is what Copilot generated as Python code.
"=PY(""#Visualize the correlation matrix with a heatmap
#Visualize the correlation matrix with a heatmap
plt.figure(figsize=(10, 8))
sns.heatmap(correlation_matrix, annot=True, cmap='coolwarm', fmt='.2f', linewidths=0.5)
plt.title('Correlation Matrix Heatmap')
plt.show()"",1)"
and here's the output
But I do not like so many numbers, I like it as a heatmap - no worries, Copilot does that as well.
And as always, you can use Copilot to make sense of your data. Just ask Copilot.
And please be aware that it's still a new feature and always check the output to make sure it's correct and makes sense to you.
Of course, it's easier to check if you have a basic or advanced understanding of data analysis, but it's a great way to get started.
Have you already tested Python in Excel with Copilot? Let me know your first thoughts.
M365 Copilot Play to Win! Event next week
If you're located in Switzerland and are Business decision maker or responsible for Copilot or AI in your organization? We are more than happy to invite you to our Copilot event. Feel free to register yourself
Hey, I'm Pascal - nice to meet you!
I am a Microsoft Most Valuable Professional (MVP) in M365 Copilot and Viva. Copilot Your Day is a weekly LinkedIn newsletter that shares best practices and the latest and greatest information around Copilot.
So be sure to subscribe the newsletters and if you like it feel free to share it, like it and comment it ?? thank you!
If you'd like to get even more Copilot tips, follow me on LinkedIn ??
???? Check out my LinkedIn Learnings Courses about Copilot - Start you learning journey here
?? Check out my Copilot Your Day Podcast
?? Check out the Copilot Hub M365 Copilot: Die Zukunft der Arbeit beginnt hier | Copilot Your Day
Finance Manager | Supply Chain Finance | Project Management | FP&A | Commercial Finance | Data Analytics | Insurance | Business Partnering | Process Automation | BPR
1 周how to get copilot for 365? i am a paid member but i dont see any such options
CEO @ Uprite - Technology for Texas SMBs & Mid-Market | Proactive vCIO | Solutions for Employee Productivity & Cybersecurity Protection | MBA | Networking for Business Growth | M&A ?? Let's Talk
2 周Better insights, less hassle. Copilot keeps getting better. Who's tested it?