Making the (partial) leap from Excel to Python
Next week, I'm going to speak at TradeTech FX Asia on the following subject "Life after Excel, using open source Python to analyse FX markets and develop FX trading strategies". I am not sure why I chose such a long title, but anyway, it's done now, and I've got to think of something useful to say now on the subject, aside from bemoaning its length, and my inability to find a short snappy title. On the subject of Excel, I've been in the industry for a while now, and whilst many things have changed, the seemingly invisible umbilical cord between trading desks and Excel is something that has persisted over time. Why is this the case? Well, Excel is relatively intuitive to use. You can see all your data, you can see all the formulae and you plot your data with a few clicks. If your spreadsheets are small, then everything is as tasty as a burger (that idiom might not work so well, if you don't like burgers however).
The difficulty is of course when your spreadsheets balloon in size. I've been there. Done that. Linking together multiple spreadsheets each sized over 100 MB. Waiting for the hourglass to fade, whilst it calculates, peppered by the random act of crashing, cast in the occasional shadow of a Windows blue screen of death. I've often written about the benefits of using Python before, but even I have to admit there's a learning curve to getting acquainted with Python code, which is somewhat steeper than understanding the basics of Excel. So what can I say in my talk, which will persuade people to discard Excel and move to Python? I can't think of any reason, so instead, I've come to the conclusion that it's best to stick with Excel and start using Python at the same time! The idea is to take the best bits of Excel, the simplicity of the interface and combine it with Python for doing complicated back end computations. This way we can keep the simplicity of Excel and the fact that users are already familiarity with it, but at the same time dispense with the problems of doing heavy duty computations in Excel, and those infamous never ending calculations that plague big spreadsheets...
To see the rest of the post, please click here to go to the Cuemacro website
Analytics & AI for Modern Excel ?? LinkedIn Learning Instructor ?? Microsoft MVP ?? O'Reilly Author ??
8 年Loved this bit: "So what can I say in my talk, which will persuade people to discard Excel and move to Python? I can't think of any reason, so instead, I've come to the conclusion that it's best to stick with Excel and start using Python at the same time!" There is a reason people like Excel - it is intuitive. I like the approach of augmenting with Python rather than replacing. Just curious - are there parts of your presentation that do things with Python for Excel that are not available in VBA? Would you suggest people who want to pair Python with Excel also learn VBA, or do you see Python as a complete replacement?
VP AI Research Lead at J.P. Morgan | Doctoral Researcher at Imperial College London
8 年I think you should check this out https://www.xlwings.org it's perfect for people who still prefer using Excel but instead of using vba you write your code in python notebooks.