Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Python Data Analysis with pandas: Advanced
New

Python Data Analysis with pandas: Advanced

Advanced windows, holiday calendars, flexible reports, speed with a million rows, and a cost-to-serve model in pandas
Last updated 11/2026
English

What you'll learn

  • Calculate moving averages and running totals exactly, including when dates repeat
  • Describe a distribution with quartiles, medians and percentiles
  • Find gaps and streaks in activity over time
  • Build complete date lists and a calendar with public holidays and working days
  • Produce reports with subtotals and grand totals, and reshape with pivot_table and melt
  • Write a flexible, safe report function driven by settings
  • Measure and improve speed and memory on a table with over a million rows
  • Keep tables in sync, load only new data with a watermark, and build a cost-to-serve model

Course content

7 sections • 25 lectures • 2h 25m total length
  • Welcome to the advanced course3:39
  • Set up the course files5:38
  • Section 1 quiz: Getting started

Requirements

  • pandas at intermediate level: groupby, merge, rank, transform, rolling, shift and functions (the intermediate course in this series covers them)
  • Anaconda (free) with JupyterLab and pandas, on Windows, Mac or Linux

Description

This course contains the use of artificial intelligence.

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

Take your pandas to the level experienced analysts work at. You can already group, merge, rank and write functions. In this course you learn the techniques you need when the questions get harder and the data gets bigger, on the same realistic dataset: Protea Bank, a fictional South African bank with 12 branches, 600 customers, 1,457 accounts and 60,000 transactions.

What you'll learn

  • Moving averages and running totals done exactly right, including what to do when dates repeat
  • Quartiles, medians and percentiles, to describe how values are really spread
  • Gaps and streaks: when accounts went quiet, and for how long
  • Complete date lists with date_range(), and a calendar with South African public holidays and working days
  • Reports with subtotals and grand totals, and pivot tables with margins
  • Reshaping with pivot_table and melt, and a flexible report function driven by settings
  • Keeping reports safe: passing values as values, and checking every setting against an allowed list
  • Speed and memory with 1.2 million rows: timing, sorted indexes, fast date filters and categories
  • Keeping a summary table in sync (insert, update, delete), and incremental loads with a watermark
  • A final project: what does each branch cost to serve, with support costs allocated on fair drivers

Every result is formatted for the people who read it, money as R 1,234.56, counts with separators and percentages with a % sign, while every calculation runs on the real numbers.

Included: 24 lectures recorded in JupyterLab, 7 section quizzes, the Protea Bank data as CSV files, a small module that loads it, one notebook per section, and 10 practice exercises with full answers.

You need: Anaconda (free) with JupyterLab and pandas, and the intermediate skills: groupby, merge, rank, transform, rolling, shift and writing functions. The intermediate course in this series covers them all.

Protea Bank and all figures in this course are fictional.

Who this course is for:

  • Analysts and accountants who use pandas and want to handle harder questions and bigger data
  • Finance, banking and operations staff who build recurring reports
  • Students of the intermediate course who want to complete the series