Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions transcripts/446-python-in-excel.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

00:00:18 That's why it's super exciting that Python is now going to be built directly into Excel.

00:00:23 Just go into a cell and type equals pi, and you're off writing full Python 3 code that is backed by a lightweight Anaconda distribution of Python.
00:00:23 Just go into a cell and type equals py, and you're off writing full Python 3 code that is backed by a lightweight Anaconda distribution of Python.

00:00:32 We have Dr. Sarah Kaiser here to give us the rundown on Python in Excel.

Expand Down Expand Up @@ -808,7 +808,7 @@

00:32:06 But they did show a really cool thing of, like I've got some Python code in here and I've got some related data and just asking like, all right, help me graph this in Python.

00:32:16 And it would show you like a Seaborn graph or a matplotlib or something like that, which is pretty excellent, honestly.
00:32:16 And it would show you like a Seaborne graph or a matplotlib or something like that, which is pretty excellent, honestly.

00:32:21 - Yeah, and then in this case here, then it would be in a format that you could share with somebody that they could then, Excel has what if scenario features where it makes it really easy to be like, well, here's the forecast or whatever, but what if this changed?

Expand Down Expand Up @@ -854,23 +854,23 @@

00:34:11 In Excel, I can say I wanna take the sum and I select the big section.

00:34:14 And it's like A1 colon A20, and that sums those up.
00:34:14 And it's like A1 : A20, and that sums those up.

00:34:19 But in Python data science land, I don't even know what that is.

00:34:24 So how do I make, obviously the point having Python there is to access chunks of data, process it, do other things to it, turn it into graphs.

00:34:31 What's the interop story?

00:34:32 - Part of the Python and Excel feature is that in that con environment, there is a module called Excel.
00:34:32 - Part of the Python and Excel feature is that in that con environment, there is a module called XL.

00:34:39 The abbreviation as it's loaded is X, the letter X and then the letter L.

00:34:43 And basically that allows you to access all kinds of data and properties of the worksheet in Python.

00:34:51 So that's basically, whether anything from like the cell styling to, you can literally just put XL parentheses, and then in a string, the Excel selection, A1 colon whatever selections, and it will just then is already available in Python.
00:34:51 So that's basically, whether anything from like the cell styling to, you can literally just put XL parentheses, and then in a string, the XL selection, A1 colon whatever selections, and it will just then is already available in Python.

00:35:07 So there's kind of this interop package that allows you to transition data models between what Excel thinks of as data and what Python thinks of as data.
00:35:07 So there's kind of this interop package that allows you to transition data models between what XLthinks of as data and what Python thinks of as data.

00:35:17 - Yeah, and basically that comes out as a pandas data frame, right?

Expand Down Expand Up @@ -898,7 +898,7 @@

00:36:32 That assumes I'm running them top to bottom, or at least those two cells, the one that defines the X is run before the one that uses the X, which makes notebooks a little bit non-deterministic, and if you don't just go run all cells.

00:36:47 But Excel takes it to a whole nother level, right?
00:36:47 But Excel takes it to a whole another level, right?

00:36:49 This refers to that, which points over there, and then that goes up, and then it goes back down, and it's all over.

Expand Down Expand Up @@ -932,7 +932,7 @@

00:38:19 - But, just like in a Jupyter notebook though, that kernel, like, if you can define variables like that X, and you can use that anywhere else, and then you can also just put it in a cell, and you can have Excel refer to it, and it will also know what data is there.

00:38:32 - Right, you might have to do the pi or the XL to like, transform it, otherwise then you just use it, yeah, yeah, awesome.
00:38:32 - Right, you might have to do the Py or the XL to like, transform it, otherwise then you just use it, yeah, yeah, awesome.

00:38:39 So, you said this runs in Azure, and it's some locked down container, but what version of Python, like, what OS is the container running, what's the story, what do you know about where this actually runs, like, to the extent that people will care?

Expand Down Expand Up @@ -1157,4 +1157,3 @@
00:47:48 (upbeat music)

00:48:06 you