No video

Python in Excel! Part 1 - Introduction

  Рет қаралды 13,951

Flex Your Data

Flex Your Data

Жыл бұрын

Python is coming to Excel! 🐍 🥳
Here's an introduction in 5 minutes.
Main takeaways:
1. Python is executed in a "Python cell". No local Python instance is required. The code is executed in the cloud.
2. These imports are run at service startup so you don't need to import them explicitly and can write code using them without further action:
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import statsmodels as sm
import seaborn as sns
import excel
2. A python cell is created by typing =PY( in a worksheet cell.
3. Objects created in one cell can reference objects created in other cells provided they respect "row-major order". Left to Right, Top to Bottom. See the video.
4. A Python cell can either display the Object type of the last statement executed in that cell, or it can convert the value of that statement into an Excel value.
5. You can switch Python Output Type using the drop-down to the left of the Formula Bar, or by using Ctrl+Alt+Shift+M.
What are your initial thoughts / questions about this feature? I'll try to answer them. 💬
#data #analytics #python #excel #dataanalytics

Пікірлер: 46
@excelrobot
@excelrobot Жыл бұрын
“Think of it as a 2-dimensional Jupyter notebook”. Love that.
@flexyourdata
@flexyourdata Жыл бұрын
It really is! The more I play with it, the more it holds true. The grid is front and center to the experience. Always has been. :)
@spilledgraphics
@spilledgraphics 11 ай бұрын
@@flexyourdata the grid is intuitive, and user-friendly, imo.
@christopherpaine1858
@christopherpaine1858 Жыл бұрын
Excel could be a great canvas for working with dataframes
@elbadlis
@elbadlis Жыл бұрын
Thanks for the introduction, Owen. Cool as always!
@supaflyutubeguy
@supaflyutubeguy Жыл бұрын
I'm excited for the upcoming videos!
@Junmarvi
@Junmarvi 9 ай бұрын
Thank you. Beginner here. I will watch all your videos..
@flexyourdata
@flexyourdata 9 ай бұрын
Welcome! Let me know if anything's not clear.
@Robls501510
@Robls501510 Ай бұрын
Just subscribed to the channel. Thanks for posting this very interesting playlist about Python in Excel.👍
@jdanman
@jdanman 11 ай бұрын
Wow, didn't even know you could run Python in Excel. Lots of possibilities to extend functionality beyond coding in VBA & PowerQuery...
@flexyourdata
@flexyourdata 11 ай бұрын
It's in beta channel at the moment but I suppose will be iterated then released to GA later.
@DailyVerse-langsong
@DailyVerse-langsong 3 ай бұрын
The best
@spilledgraphics
@spilledgraphics Жыл бұрын
mate, amazing video!
@spilledgraphics
@spilledgraphics 11 ай бұрын
df.columns (dot columns) quite handy, mate. thanks! (re-watching the video)
@mariorauldelapena2052
@mariorauldelapena2052 9 ай бұрын
Gracias!!! Brilliant!!!!
@professorserna
@professorserna 3 ай бұрын
The statement df['Team']=df['Team'].replace('','No team') does not work for me. It produces a "None" instead of 'No team'
@professorserna
@professorserna 3 ай бұрын
I selected the "Team" column, did a Ctrl + H with the "Find what" field empty and the "Replace with" field containing a single quote and, after that, the statement "df['Team']=df['Team'].replace('','No team')" worked.
@bulbulahmed3098
@bulbulahmed3098 8 ай бұрын
❤❤❤
@snchitre
@snchitre 11 ай бұрын
I cannot see the PYTHON tab in the EXCEL FORMULA Ribbon? How to get it? I have office 365
@flexyourdata
@flexyourdata 11 ай бұрын
For now, you have to join Office Insiders and enable the Beta Channel.
@farizalallone
@farizalallone 11 ай бұрын
How Do I Join?@@flexyourdata
@zjd0114
@zjd0114 Жыл бұрын
Did you have any issues actually getting Python to run? I've joined the Beta program, reinstalled, ran as admin, but nothing seems to be working. Do I need to have something else from MS installed?
@flexyourdata
@flexyourdata Жыл бұрын
I think you've done everything that's needed - I just think the rollout to Insiders Beta is being done gradually and may be a little time until everyone on the channel gets hold of it. However, I could be wrong about this, so you might want to raise a feedback thread via help.
@meniporat3527
@meniporat3527 10 ай бұрын
Amazing, Owen. I'm speechless 🙂 Since you are using the same data over several "lessons", would it be possible to upload the original Tour de France file?
@flexyourdata
@flexyourdata 10 ай бұрын
Hi Meni, no problem. I downloaded that dataset from Maven Analytics. Here: mavenanalytics.io/challenges/maven-tour-de-france-challenge/25
@meniporat3527
@meniporat3527 10 ай бұрын
@@flexyourdata I'm owing you, Owen 😜😜😜
@dimknaf
@dimknaf 7 ай бұрын
I receive connection errors when I am trying to connect to localhost with Flowise or Local LLM APIs. In Python it's ok, but with excel it's not. Any thoughts?
@flexyourdata
@flexyourdata 7 ай бұрын
Python in Excel is not connected to the Internet and cannot access local or network files. It's limited to the data you give it via the Excel spreadaheet or Power Query. So your best bet is to connect to your data source with Power Query and then feed the query into the xl method in the Python cell
@dimknaf
@dimknaf 7 ай бұрын
@@flexyourdata It would be great to do a video like this one. An example? Basically, I want to work with LLM calls like they are functions. I did this with a macro (chatgpt) wrote the code. Works well, but the excel freezes. This is why I want to use PYthon. However I don't know how to make it work this way. So flexibly I can use like a normal Excel function.
@memolingvo5563
@memolingvo5563 5 ай бұрын
How to install the Python libraries which are missing in the Python for Excel?
@learnwitharbia3477
@learnwitharbia3477 Жыл бұрын
Thanks for the video, Please how can you get the new python option?? is there any link to updates??
@flexyourdata
@flexyourdata Жыл бұрын
You'll definitely need to sign up for the Office Insiders Beta Channel. After that, I still think the rollout is gradual at this point but will become more widespread in the coming weeks. Start here: support.microsoft.com/en-us/office/getting-started-with-python-in-excel-a33fbcbe-065b-41d3-82cf-23d05397f53d
@learnwitharbia3477
@learnwitharbia3477 Жыл бұрын
Thank you for helping!@@flexyourdata
@mohsentarashi
@mohsentarashi 11 ай бұрын
Hello. Thanks for your great video 👍 Is it necessary to buy official o365 and then join in beta program?!
@flexyourdata
@flexyourdata 11 ай бұрын
Yes you need an O365 subscription and you must join Office Insiders on the Beta Channel.
@praveenthakur122
@praveenthakur122 11 ай бұрын
can we have data set for practice
@flexyourdata
@flexyourdata 11 ай бұрын
There are lots of free datasets out there. The one from the video is from here: mavenanalytics.io/challenges/maven-tour-de-france-challenge/25
@cedjulemckeever
@cedjulemckeever Жыл бұрын
Does this add anything to what we can do already in Excel?
@flexyourdata
@flexyourdata Жыл бұрын
Plenty. For example - built in machine learning algorithms in scikit-learn. Regular expressions via regex.
@vuphanmaivang2293
@vuphanmaivang2293 11 ай бұрын
How to install it; i use office 2016
@flexyourdata
@flexyourdata 11 ай бұрын
You will need O365 Insiders Beta Channel for this feature. It won't work on Office 2016, unfortunately.
@user-lx3hx8qb7q
@user-lx3hx8qb7q 10 ай бұрын
Is it possible to manipulate cell values with python?
@flexyourdata
@flexyourdata 10 ай бұрын
I'm not sure I follow. You can definitely perform calculations with Python in Excel. But you can't edit a cell that is already populated with data from another source. For example, if you type a number in a cell, you can't use the Python in Excel runtime to alter what's in that cell unless you convert that cell in to a Python cell first. But, you can grab the number from that cell, perform some calculation on it, and return it to the cell where the Python code is. Hope this makes sense.
@CaribouDataScience
@CaribouDataScience 11 ай бұрын
Say, what I need to do in Excel to get this statsmodels to work? import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns from statsmodels.tsa.stattools import adfuller from statsmodels.graphics.tsaplots import plot_acf, plot_pacf
@flexyourdata
@flexyourdata 10 ай бұрын
What's not working?
@CaribouDataScience
@CaribouDataScience 10 ай бұрын
@@flexyourdata thanks, for you reply. I was able to get it to work by adding, import statsmodles the the code in Excel.
Python in Excel! Part 2 - Organization
7:44
Flex Your Data
Рет қаралды 4,9 М.
Python in Excel Makes Power Query a MUST-HAVE in 2024!
13:19
David Langer
Рет қаралды 39 М.
黑天使遇到什么了?#short #angel #clown
00:34
Super Beauty team
Рет қаралды 41 МЛН
ISSEI & yellow girl 💛
00:33
ISSEI / いっせい
Рет қаралды 19 МЛН
Prank vs Prank #shorts
00:28
Mr DegrEE
Рет қаралды 3,8 МЛН
Are You Still Using Excel? AUTOMATE it with PYTHON
7:19
John Watson Rooney
Рет қаралды 48 М.
6 COOLEST  Excel formulas in 2024
7:57
FM Lifestyle
Рет қаралды 2 М.
NEW Python in Excel - PYTHON + EXCEL + ChatGPT = Easy!
10:32
MyOnlineTrainingHub
Рет қаралды 210 М.
Excel Now Has Python - And It's Awesome
24:09
ThioJoe
Рет қаралды 52 М.
Introducing Python in Excel
19:01
Leila Gharani
Рет қаралды 1,5 МЛН
Python in Excel vs. VBA - What You Should Learn in 2024!
10:05
David Langer
Рет қаралды 38 М.
Automate Your Excel Tasks Using Python
11:05
Coding Is Fun
Рет қаралды 12 М.
AWESOME Excel trick to combine data from multiple sheets
7:27
Chandoo
Рет қаралды 1,1 МЛН
Excel BIG Update: Python is HERE! What You Need to Know NOW!
17:58
PK: An Excel Expert
Рет қаралды 15 М.
黑天使遇到什么了?#short #angel #clown
00:34
Super Beauty team
Рет қаралды 41 МЛН