Python for Excel: Use xlwings for Data Science and Finance

Integrate Excel and Python and get the best of two Worlds! Python Beginners welcome. Use Pandas, Seaborn & co. in Excel

  • 0.0 (0 Reviews)
  • 0 Students
  • 208 Lessons
  • Alexander Hagmann

Course Overview

Excel vs. Python - what is the best tool for Data Science, Business, and Finance?

The answer is: Use Excel and Python together and integrate both tools with xlwings. Get the best of two worlds!


With xlwings, you can use Python Data Science libraries like Numpy, Pandas, Scipy, Matplotlib, Seaborn, and Scikit-learn directly in Excel! You can run Python code in Excel and boost your Excel projects! More and more Professionals and Developers use

  • Excel as Frontend

  • Python as analytical Backend.  


This course is the perfect choice for

  • Experienced Python Coders: Use Excel as Graphical User Interphase (GUI) | Run your Python scripts with Excel | Present your results with Excel Dashboards 

  • Excel Users and complete Python Beginners: Boost your Excel projects with clean and powerful Python code!

  • Mixed Groups: Non-Coders can run and use Python code simply by clicking on buttons in Excel.


Why take this course?

  • You will learn and master the xlwings library from scratch

  • For Excel Users and complete Python Beginners: This course includes a Python Crash Course that is tailor-made for you!

  • It´s the most comprehensive and practical (hands-on) xlwings course on the web

  • It covers three comprehensive real-world projects.

  • Project 1: You will learn how to boost your financial model in Excel by adding a Python Monte Carlo Simulation - Run your Excel calculation 10,000 times with different sets of inputs and analyze the results!

  • Project 2: You will learn to create Bloomberg-like Stock Dashboard Apps with Excel (Graphical User Interface) and Python (analytical Backend).

  • Project 3: You will learn how to use Pandas methods and functions on your datasets directly in Excel.


Why use Excel?

There is no better Graphical User Interface (GUI) and Reporting tool than Excel. Excel is

  • widely spread (750 million users)

  • standardized

  • intuitive to use

  • most users are well-trained

  • it requires low/zero setup

  • it requires low/zero maintenance  

  • and it´s still the best choice for financial models & spreadsheet calculations


Why use Python?

With hundreds of powerful Libraries, Python is the first choice for Data Science, Machine Learning, and advanced analytics in Business and Finance. The Python Ecosystem is way more powerful and versatile than VBA. And it´s cleaner and easier to learn and apply!


Why learn and master xlwings?

xlwings is the perfect tool to integrate Excel and Python! xlwings allows you to

  • Automate Excel from Python e.g. to produce reports or to interact with Jupyter Notebooks.

  • Write macros in Python that you can run from buttons in Excel, e.g. to load data from a database or an external API.

  • Write UDFs (user-defined functions) and leverage the power from NumPy, Pandas, and machine learning libraries.

  • Leverage Python's scientific stack for interactive data analysis using Jupyter Notebooks, NumPy, Pandas, scikit-learn, etc.

  • Use xlwings to automate Excel reports with Python.

  • Write Excel tools with Python instead of VBA and call your code directly from within Excel, e.g. via a button on the sheet.

  • This also works great for prototyping web apps.

  • Write (array) UDFs in a breeze by taking advantage of all the functionality already available in libraries like NumPy and Pandas.

  • Dynamic array formulas are supported.


As always, there is no risk for you as I offer a 30-day money-back guarantee. I am looking forward to seeing you in the course!

(Mac users are welcome! However, please note that 10%-15% of the course content (UDFs) is currently unavailable on Mac!)

See more

FAQ

FAQ area empty

Course curriculum

15 chương 208 bài học 17 giờ 7 bài học thử miễn phí
Chương 1 Getting Started
Chương 2 First Steps with xlwings (Reading and Writing Elements)
  • Introduction and Downloads 1:28
  • How to install xlwings Học thử 1:38
  • How to use xlwings as a Data Viewer 7:24
  • Data Viewer - Update 1:26
  • How to connect to an Excel Workbook 7:28
  • How to read and write single Values 5:56
  • How to assign a name 3:08
  • How to write Excel Functions with Python 2:58
  • Range Shortcuts 1:55
  • Case Study - Bringing it all together 6:59
  • Homework 4:42
Chương 3 Reading and writing many Values
  • Section Downloads
  • One-dimensional Data Structures 4:45
  • How to write Values vertically 1:45
  • Rows and Columns (1dim vs. 2dim) 2:50
  • How to read two-dimensional Data Structures 2:53
  • Advanced Reading with expand 3:47
  • How to write two-dimensional Data Structures 1:24
  • Range Indexing and Slicing 4:44
  • Efficiency 3:42
  • Homework
Chương 4 Project 1: Monte Carlo Simulations in Excel with Python (Part 1)
  • Introduction 7:40
  • Section Downloads
  • The Excel Model explained (Part 1) 11:09
  • The Excel Model explained (Part 2) 5:11
  • Running a simple Monte Carlo Simulation 14:33
  • A more advanced and realistic Monte Carlo Simulation 5:16
  • Final Considerations 3:00
Chương 5 Running Python Scripts in Excel - RunPython
  • Introduction and Downloads 2:38
  • Installing the xlwings add-in and other preparations 8:44
  • Running Python Scripts with "Run main" 4:41
  • Troubleshooting (Part 1) 4:32
  • All you need to know about VBA Macros 7:15
  • Running Python Scripts with "RunPython" 7:11
  • Troubleshooting (Part 2) 6:56
  • Run main vs RunPython 4:12
  • Excursus: Converting Jupyter Notebooks to .py 4:00
  • Homework
Chương 6 Project 1: Monte Carlo Simulations in Excel with Python (Part 2)
  • Introduction and Downloads 1:14
  • Monte Carlo Simulation with RunPython (Part 1) 8:07
  • Monte Carlo Simulation with RunPython (Part 2) 8:24
Chương 7 Using Matplotlib and Seaborn in Excel with xlwings
  • Introduction and Downloads (Dec24 Update) 1:05
  • How to write a Matplotlib Plot into Excel 3:23
  • How to update the Plot 4:22
  • How to change Size and Position (Part 1) 4:42
  • How to change Size and Position (Part 2) 2:13
  • How write a Seaborn Plot into Excel 3:54
  • How to create Excel Charts with Python 3:25
  • Homework: Adding a Plot to the Monte Carlo Simulation (Project 1) 6:08
Chương 8 Project 2: Build Dashboard Apps with Excel (GUI) and Python (analytical backend)
  • Introduction and Downloads (Dec24 Update) 2:44
  • IMPORTANT NOTICE (Update January 23) 1:30
  • Stock Performance Analysis during COVID-19 with Python & Pandas (Part 1) 8:38
  • Stock Performance Analysis during COVID-19 with Python & Pandas (Part 2) 7:44
  • Stock Performance Analysis during COVID-19 with Python & Pandas (Part 3) 8:36
  • Building a Stock Performance Dashboard App (Part 1) 12:45
  • Building a Stock Performance Dashboard App (Part 2) 5:50
  • Improving the Source Code and Errors 14:01
Chương 9 Reading and Writing Data Structures (Numpy, Pandas) & Converters
  • Section Downloads (Update: Dec24)
  • (Default) Converters 4:10
  • The Numpy Converter 2:56
  • The Dictionary Converter 3:44
  • The DataFrame Converter (Part 1) 5:17
  • The DataFrame Converter (Part 2) 3:42
  • Data Science Application: Inspecting and Manipulating DataFrames in Excel 5:08
  • The Pandas Series Converter 4:20
  • Update: Preps for pd.read_excel()
  • Excursus: How to load Data from Excel into Pandas with pd.read_excel() 11:11
  • Excursus: Advanced import with pd.read_excel() 8:06
  • Excursus: How to load Financial Data / Time Series with pd.read_excel() 10:45
Chương 10 User-defined Functions (UDF) and Dynamic Arrays with xlwings (Windows only)
  • Introduction and Downloads 1:19
  • Preparations and your first UDF 7:46
  • How to change the Name and Location of the Python Module 5:27
  • Troubleshooting (UDF) 6:42
  • UDFs - Behind the Scenes 3:14
  • More complex UDFs and the @xw.arg Decorator 8:25
  • How to create Numpy UDFs 3:14
  • UDFs and Array Formulas 6:05
  • How to create Dynamic Arrays with xlwings UDFs 4:47
  • How to create Pandas UDFs 7:30
  • How to add Docstrings 3:53
  • Homework
Chương 11 Project 3: Use Pandas UDFs in Excel for Data Science and Finance (Windows only)
  • Introduction and Downloads 2:59
  • IMPORTANT NOTICE (Update January 23) 1:18
  • How to load Financial Data from the Web into Excel with the DataReader UDF 4:31
  • How to resample Time Series in Excel with the resample UDF 3:57
  • How to calculate Financial Returns with a Pandas/Numpy UDF 3:35
  • How to get Summary Statistics of a Dataset with the describe UDF 2:26
  • How to create a Dataset´s Correlation Matrix with the corr UDF 3:16
  • Taken all together - the Super UDF 9:16
  • How to perform inner/outer/left/right joins with the merge UDF 7:37
Chương 12 BONUS (added in Oct 2023): The new Python in Excel Feature - Overview
  • Introduction and Preview 6:08
  • Python in Excel: How it works & what you need 2:48
  • Python in Excel: Features & alternative Tools (xlwings) 10:11
  • Important Preps before you can set up Python in Excel
  • How to set up Python in Excel (BETA) 3:11
  • Troubleshooting 5:36
  • Simple Operations using the PY Function 12:04
  • What else you can do with Python in Excel - Outlook 1:01
Chương 13 APPENDIX 1: Python Crash Course for Excel Users
  • Introduction and Overview 1:46
  • Section Downloads
  • Intro to the Time Value of Money (TVM) Concept (Theory) 6:01
  • Calculate Future Values (FV) with Python / Compounding 3:29
  • Calculate Present Values (FV) with Python / Discounting 2:38
  • Interest Rates and Returns (Theory) 4:26
  • Calculate Interest Rates and Returns with Python 3:47
  • Introduction to Variables 5:04
  • Excursus: How to add inline comments 2:50
  • Variables and Memory (Theory) 1:57
  • More on Variables and Memory 6:33
  • Variables - Dos, Don´ts and Conventions 3:49
  • The print() Function 4:09
  • Coding Exercise 1 9:00
  • TVM Problems with many Cashflows 3:21
  • Intro to Python Lists 2:22
  • Zero-based Indexing and negative Indexing in Python (Theory) 2:47
  • Indexing Lists 3:10
  • For Loops - Iterating over Lists 7:48
  • The range Object - another Iterable 4:56
  • Calculate FV and PV for many Cashflows 7:35
  • The Net Present Value - NPV (Theory) 7:47
  • Calculate an Investment Project´s NPV 3:02
  • Coding Exercise 2 8:41
  • Data Types in Action 6:07
  • The Data Type Hierarchy (Theory) 3:30
  • Excursus: Dynamic Typing in Python 1:38
  • Build-in Functions 5:52
  • Integers 3:18
  • Floats 5:58
  • How to round Floats (and Integers) with round() 5:10
  • More on Lists 5:15
  • Lists and Element-wise Operations 4:19
  • Slicing Lists 4:33
  • Slicing Cheat Sheet
  • Changing Elements in Lists 2:44
  • Sorting and Reversing Lists 3:48
  • Adding and removing Elements from/to Lists 9:33
  • Mutable vs. immutable Objects (Part 1) 9:04
  • Mutable vs. immutable Objects (Part 2) 5:12
  • Coding Exercise 3 11:32
  • Tuples 6:50
  • Dictionaries 6:22
  • Intro to Strings 8:47
  • String Replacement 4:10
  • Booleans 2:23
  • Operators (Theory) 4:37
  • Comparison, Logical and Membership Operators in Action 8:21
  • Coding Exercise 4 8:56
  • Conditional Statements 9:04
  • Keywords pass, continue and break 9:37
  • Calculate a Project´s Payback Period 4:35
  • Defining your first user-defined Function 6:07
  • What´s the difference between Positional Arguments vs. Keyword Arguments? 5:35
  • How to work with Default Arguments 5:27
  • Coding Exercise 5
Chương 14 APPENDIX 2: Matplotlib, Numpy, Pandas and Seaborn Crash Course
  • Downloads for this Section (Update: October 2024)
  • Matplotlib Introduction 1:23
  • Line Plots 5:38
  • Scatter Plots 1:59
  • Customizing Plots (Part 1) 6:29
  • Customizing Plots (Part 2) 11:54
  • Coding Exercise 6
  • Modules, Packages and Libraries - No need to reinvent the Wheel 7:52
  • Numpy Arrays 8:23
  • Indexing and Slicing Numpy Arrays 3:13
  • Vectorized Operations with Numpy Arrays 3:56
  • Changing Elements in Numpy Arrays & Mutability 5:50
  • View vs. copy - potential Pitfalls when slicing Numpy Arrays 4:45
  • Numpy Array Methods and Attributes 5:13
  • Numpy Universal Functions 3:59
  • Boolean Arrays and Conditional Filtering 4:39
  • Coding Exercise 7
  • How to work with nested Lists 4:21
  • 2-dimensional Numpy Arrays 3:51
  • How to slice 2-dim Numpy Arrays (Part 1) 5:36
  • How to slice 2-dim Numpy Arrays (Part 2) 2:03
  • Recap: Changing Elements in a Numpy Array / slice 3:39
  • How to perform row-wise and column-wise Operations 4:33
  • Coding Exercise 8
  • Intro to Tabular Data / Pandas 4:19
  • Create your very first Pandas DataFrame (from csv) 9:09
  • Pandas Display Options and the methods head() & tail() 6:41
  • First Data Inspection 11:25
  • Coding Exercise 9
  • Selecting Columns 6:05
  • Selecting one Column with the "dot notation" 2:16
  • Zero-based Indexing and Negative Indexing 3:04
  • Selecting Rows with iloc (position-based indexing) 10:07
  • Slicing Rows and Columns with iloc (position-based indexing) 4:39
  • Position-based Indexing Cheat Sheets
  • Selecting Rows with loc (label-based indexing) 3:14
  • Slicing Rows and Columns with loc (label-based indexing) 10:21
  • Label-based Indexing Cheat Sheets
  • Summary, Best Practices and Outlook 6:30
  • Coding Exercise 10
  • First Steps with Pandas Series 3:53
  • First Steps with Pandas Index Objects 5:57
  • Importing Time Series Data from csv-files 8:16
  • Initial Analysis / Visualization of Time Series 5:41
  • Seaborn Introduction 5:24
Chương 15 What´s next? (outlook and additional resources)
  • Bonus Lecture

Requirment

  • A desktop computer (Windows or Mac) capable of storing and running Python/Anaconda. The course will walk you through installing the necessary free software.

  • An internet connection capable of streaming HD Videos.

  • A working installation of Microsoft Excel.

  • Mac users are welcome. Please note that 10%-15% of the course content (UDFs) work on Windows only!

  • Willingness to code and work with Python.

Outcomes

  • Automate Excel with clean and powerful Python Code

  • Learn and master the xlwings library from 0 to 100

  • Use Excel as Graphical User Interface (GUI) and run your Python code with Excel

  • Create powerful Dashboard Apps with Excel (frontend) and Python (backend)

  • Use powerful Data Visualization Tools (Matplotlib, Seaborn) in Excel

  • Learn Python from scratch with a taylor-made Crash Course (For Python beginners)

  • Write UDFs (user defined functions) and use Numpy, Pandas and Machine Learning Libraries directly in Excel

  • Write Excel tools with Python instead of VBA and call your code directly from within Excel

  • Use xlwings to automate Excel reports with Python

  • Prototype Web apps

  • Write and use Dynamic Arrays with xlwings

  • Run your financial model 10,000 times & more with a Python Monte Carlo Simulation

  • Load (financial) data from Web APIs directly into Excel

  • Run Python Scripts from within Excel with Run main and RunPython

  • Replace VBA macros with clean and powerful Python code

Instructor

...
Alexander Hagmann

0.0

  • ... 0 Student
  • ... 2 Courses
  • ... 0 review

View Details

Reviews

Rate this course :

Remove all