Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Activity-Based Costing for a Bank Branch Network in Python
New
4 students

Activity-Based Costing for a Bank Branch Network in Python

Build a 4-stage ABC model with pandas and Jupyter: workgroups, activities, products, traceback, spare capacity
Last updated 11/2026
English
English

What you'll learn

  • Build a complete activity-based costing model for a bank's branch network in Python with pandas
  • Share ledger lines among workgroups on salaries, headcount, floor space and workstations
  • Reassign support and regional costs to the teams they support with the step-down method
  • Cost activities from each team's own volumes and standard minutes, with no time survey
  • Assign activities to products by branch and channel, and calculate product profitability
  • Check every stage against the ledger and trace any number back to where it started
  • Measure team utilisation, activity rates and the cost of spare capacity
  • Run the model every month with one function, with no dates typed into the code

Course content

9 sections • 55 lectures • 5h 6m total length
  • Welcome to the course3:55
  • How activity-based costing works in a bank4:25
  • The model flow, stage by stage5:16
  • Set up Python and the data10:31
  • Formatting results: money, numbers and percentages12:57

Requirements

  • Basic Python and pandas: reading a CSV file, filtering rows, merge, groupby and pivot_table
  • Python with pandas and JupyterLab (the free Anaconda distribution includes them)
  • No costing software or previous costing model needed

Description

This course contains the use of artificial intelligence.

The narration in this course uses an AI-generated voice. The model, the data, the code and the explanations were written for the course, and every result shown was produced by running the code.

What does each product, branch and activity in a bank really cost? Activity-based costing (ABC) answers that question by following the work: costs land where they are caused. In this course you build a complete ABC model for the Branch Network division of a fictional South African bank, Protea Bank, in Python, with pandas, in Jupyter notebooks.

Four stages, each run, checked and traced

  • Stage 1: every ledger line shared among the workgroups (teams) of its centre, on method values: salaries, headcount, floor space and workstations.
  • Stage 2: support costs (executive office, HR, IT, facilities, regional offices) reassigned to the teams they support, step by step.
  • Stage 3: each team's full cost moved to its activities, on the minutes its own volumes took: volume × standard minutes. No time survey.
  • Stage 4: activities moved to products, by branch and by channel (branch and online).

After every stage you write a check that proves the stage still holds every rand of the ledger, and a trace that shows how any number was calculated. Only then do you move on.

Built to run every month

  • Every stage and every report is a Python function, explained part by part, line by line.
  • The current month is stored once; every function takes an optional period, so month-end is two lines and no date is ever typed into the code
  • A single function runs the whole model for any month, all or nothing, with a run log
  • Every result is formatted: money as R 1,234.56, counts with separators, percentages with a % sign

What the model tells you

  • Product profitability, and profit by branch and product
  • The cost of opening an account in a branch versus online
  • Activity rates: the cost of one deposit, one account, one loan application
  • Team utilisation: which teams are overloaded, and which have spare time
  • Spare capacity: the cost of unused time, and where it sits
  • Traceback: any product's cost back to the activities, centres and resources where it started

Included: 54 lectures recorded in JupyterLab, 8 section quizzes, the data as CSV files, one notebook per section, a module with every function from the course, and 14 practice exercises with full answers.

You need: Python with pandas and JupyterLab. The free Anaconda distribution has everything. No database and no costing software are needed.

Protea Bank and all figures in this course are fictional.

Who this course is for:

  • Management and cost accountants who want to build costing models in Python
  • Finance business partners and analysts in banking and financial services
  • Python and pandas users who want a real, end-to-end finance project