Тёмный

How Fast is Python in Excel? 

PyXLL - Write Excel Add-Ins with Python and Java
Подписаться 10 тыс.
Просмотров 1,9 тыс.
50% 1

A performance comparison of Microsoft's recently announced Python in Excel feature, and the Python Excel add-in PyXLL.
Results (Spoilers ahead!)
====================
Test 1:
PyXLL: 137 milliseconds
MS Python in Excel: Didn't finish
Test2:
PyXLL: 11 milliseonds
MS Python in Excel: 6.56 seconds
Test3:
PyXLL: 822 milliseconds
MS Python in Excel: 12.98 seconds / 3.55 seconds*
*when using cached arguments
Resources
=========
PyXLL (Python add-in for Excel): www.pyxll.com
MS Python in Excel: techcommunity.microsoft.com/t...
FAQ on differences: support.pyxll.com/hc/en-gb/ar...
FastExcel add-in: www.decisionmodels.com/FastEx...
00:00 - Intro
00:24 - The test case
01:16 - Timing with the PyXLL add-in
02:40 - Setting up the test with MS Python in Excel
05:14 - Timing with MS Python in Excel
05:48 - Kill Excel and try something smaller
06:02 - A smaller test
07:28 - The result!
07:35 - A note on recalculation
08:27 - Bonus! A test using DataFrames and FastExcel
11:23 - Closing

Наука

Опубликовано:

 

19 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 6   
@PulpFreePress
@PulpFreePress 7 месяцев назад
Great overview, thanks!
@spilledgraphics
@spilledgraphics 7 месяцев назад
Tony! I finally got the chance to watch this. Very, very interesting stuff to keep in mind. Curious: minute 1:53 can you referenced the entire columns and have "spilled results"? Also, nice editing move with Fast Forwarding on minute 4:40 😁
@python-excel
@python-excel 7 месяцев назад
Hi Carlos, haha hope you enjoyed it!! Yes absolutely, you can have dynamic arrays with PyXLL that return spilled results. Just return a list, DataFrame or other array type from Python and it will appear in Excel as a spilled array (see www.pyxll.com/docs/userguide/udfs/arrayfuncs.html). Of course for processing vectors of data that makes perfect sense, but for this test I wanted to see how it performed with lots of functions as lots of the real world sheets I see contain large numbers of different formulas and functions. Thanks for watching :)
@phrrngtn
@phrrngtn 9 месяцев назад
I have not tried it yet but based on the documentation and videos like this, I am kind of amazed at how poorly architected the Microsoft offering is. Actually, let me elaborate on that a bit. When you see that some nice effort has been put into the UI (with the PY formula box; little green clocks for computation etc), it seems astonishing that the overall architecture seems so off. If one thinks that VBA is bad from a management and versioning point of view, then what is having the code as cells going to look like. What is going to happen when there is stateful code in the notebook that gets bitten by the execution/evaluation order?
@thiyagarajan1989
@thiyagarajan1989 9 месяцев назад
Can you test Please... "VBA" v/s "PyXLL" v/s "MS Python in Excel", ......Which One is Fastest when the data have more than 10,000 Rows with more than 10 columns.... Also test which one is fastest.... "VBA Code" v/s "Using Excel Functions Using in VBA Code" say for example 1 : VBA Code For FindOut Unique Values v/s Excel Unique Function Used in VBA Code like that .....
@python-excel
@python-excel 9 месяцев назад
Usually it's easier to write faster Python code than VBA, but of course it is possible to write slow Python code too! When it comes to Python in Excel, PyXLL is by far the fastest. I always recommend profiling your code before trying to make it faster. You might find this article interesting www.pyxll.com/blog/how-to-profile-python-code-in-excel/
Далее
Introducing Python in Excel
19:01
Просмотров 1,5 млн
ЛИПЕР ДЛЯ ТЕЛЕФОНА 🤯
00:59
Просмотров 604 тыс.
Skins from the FUN&SUN collection | Standoff 2 (0.29.0)
01:10
Python In Excel: Microsoft Changed EVERYTHING
14:37
Просмотров 445 тыс.
Use Python to replace VBA in Excel
16:58
Просмотров 372 тыс.
Excel Now Has Python - And It's Awesome
24:09
Просмотров 51 тыс.
3 Essential Excel skills for the data analyst
18:02
Просмотров 1,5 млн
VBA vs. Python - Which is better?
13:17
Просмотров 128 тыс.
Stop using VLOOKUP in Excel. Switch to INDEX MATCH
11:05
#miniphone
0:16
Просмотров 3,2 млн
ЛУЧШИЙ ПОВЕРБАНК ОТ XIAOMI
0:39
Просмотров 16 тыс.
iPhone 12 socket cleaning #fixit
0:30
Просмотров 43 млн
APPLE совершила РЕВОЛЮЦИЮ!
0:39
Просмотров 1,9 млн