Skip to main content
Data Resources

Models and stories for finance data

Working Excel, Python and SQL models built by finance professionals, and data stories that explain the numbers behind the news. Every model is explained sheet by sheet and paired with a DATA DARE practice dataset.

Python model

Accounts Receivable Analysis in Python — 40 Worked Answers on a Real AR Ledger (pandas)

Accounts receivable analysis means knowing what is owed, how old it is, how fast it turns into cash and which of it is in dispute. This notebook does all of that in pandas on a real receivables ledger rather than a tidy teaching table: four file formats in one folder, a quarter to append, a subledger that does not agree with the general ledger, and cash in the bank that no invoice claims. Every number it prints was checked against the dataset's own answer book before it was published.

By findi360 · Updated November 2026

AR Analysis in Python — Jupyter Notebook
Format
Jupyter notebook (.ipynb), outputs saved
Data
DATA DARE DD-ARC-002 · 70,300 ledger rows · CSV, Parquet, Excel and JSON
Covers
40 questions, easy to very hard
Needs
Python 3.9+, pandas, pyarrow, openpyxl

Download and share

Downloads need a findi360 account — create one in a minute and the file starts straight away. Already a member? Sign in

No account? Get this model by email.
One model by email is free. For more, a free account takes a minute.

Continue with Google

What accounts receivable analysis actually involves

Four measures carry most of the reporting. The ageing splits the open book by how long each invoice has been outstanding, usually in buckets of thirty days, because a balance ninety days old is a different problem from one raised last week. DSO — days sales outstanding — turns the open balance into a number of days of sales, so a growing business can tell whether collections are really slipping. CEI, the collection effectiveness index, measures how much of what was collectable in a period was actually collected. And the disputed balances have to come out of the collections conversation entirely, because chasing an invoice the customer has formally queried wastes everyone's time.

Why four file formats sit in one folder

This is how finance data really arrives. The ledger is a CSV because that is what the ERP exports. The new quarter is a Parquet file because it is a column store built for size. The dispute log is an Excel workbook because a person maintains it. The bank remittances are JSON because they came from a payment system over an interface. A finance analyst who can only open spreadsheets is stopped at the second file; eight lines of pandas read all four.

Build the working tables once

The notebook builds six tables before it answers anything: the full ledger with the new quarter appended, the open items at the reporting date, the ageing with its buckets, the customer-level summary, the disputes, and the remittances matched to invoices. Every one of the forty answers then reads off those six. It is the same habit as a Power BI model — build the measure once, use it everywhere — and it is why the hard questions at the end take three lines each rather than thirty.

The traps in this ledger

Three of them, all taken from real life. The subledger does not agree with the general ledger control account, and the difference has to be found rather than plugged. Some cash sits in the bank with no invoice against it, which overstates what customers still owe until it is applied. And a handful of invoices are in dispute, which changes both the overdue figure and the list of customers worth calling. The last questions in the notebook are about exactly these.

Python or Excel?

Excel is the right tool for a one-off ageing on a few thousand rows. It stops being the right tool the moment the work repeats every month, the data arrives in several formats, or the ledger outgrows comfortable checking by eye. The notebook below is the same analysis written once and re-runnable in seconds on next month's export. The findi360 AR Full-Scale Model course teaches this set in Power BI and in Python side by side.

Inside the notebook

  1. Libraries — A cell that tells you which libraries are missing before anything else runs.
  2. Load the files — All four formats read in eight lines — CSV, Parquet, Excel and nested JSON.
  3. First look — Row counts, column types and the shape of the ledger before any calculation.
  4. Fix the data — Append the new quarter, set the dates, derive the open items and the ageing bucket.
  5. Six working tables — Ledger, open items, ageing, customers, disputes and remittances — built once, used forty times.
  6. The answers, Q01 to Q40 — One cell per question, each ending with the answer, and a final list of all forty.

Excel + Python — the Power of Plus

Excel does this model well when all five of these are true. When two or more are not, you add Python — not instead of Excel, beside it. That is the Power of Plus.

  1. One-off — you build it once, not again every month.
  2. Fixed structure — the same accounts, entities and layout each time.
  3. Small enough to check by eye — thousands of rows, not millions.
  4. One source — one ledger or one plan, not data scattered across systems and files.
  5. No live link needed — nobody expects it to update from the ledger by itself.
Excel

What next month's ageing really costs in Excel

  1. Export the ledger again and paste it in, hoping the columns arrived in the same order.
  2. Open the Parquet file — which Excel cannot read — and find someone to convert it first.
  3. Rebuild the ageing buckets against the new reporting date and re-check every lookup.
  4. Repeat the dispute and unapplied-cash adjustments by hand, and reconcile to the control account again.
Python

The same work, once it repeats

In Python the same six tables rebuild from the new export in seconds, in whatever format it arrives, and every figure shows the line of code that produced it.

Python still needs your judgement where the data is new — but everything after that repeats by itself.

Learn it on findi360: AR Full-Scale Model · Level 2

Notify me when it opens

Want to see what scattered data looks like? Three ERPs, three currencies and one consolidated group: DD-CON-004 — Diversified Group Close: Acquisition, Goodwill & Multi-ERP Consolidation

Who this model is for

  • Finance teams running collections who want an ageing that rebuilds itself every month instead of by hand
  • Accountants learning Python on real finance data rather than on sample datasets
  • Candidates preparing for the DATA DARE receivables challenges and the Silver Seal test

Frequently asked questions

Do I need to know Python already?

No. The notebook is written to be read top to bottom, with a short explanation before every block of code and comments that say why rather than what. If you can read a formula in Excel you can follow it. Install Python, install pandas, put the dataset in the same folder and press run.

Which version of pandas does it need?

It was run and checked on pandas 2.2.3 and on pandas 3.0.5, and gives identical answers on both. Anything from pandas 1.5 upwards should work; the first cell tells you if a library is missing.

Can I run it on my own receivables ledger?

Yes, once the column names match. The work is in the six tables, not in the questions: point the loading cell at your own export, keep the same column names (or rename them once at the top), and the ageing, DSO, CEI and dispute analysis all follow.

Why Python instead of Excel for this?

Because this repeats. A monthly ageing built by hand is rebuilt every month and re-checked every month. The same work in a notebook runs again in seconds on next month's file, reads formats Excel cannot open, and shows exactly how each figure was reached.

Are the answers in the file correct?

Every one of the forty was compared with the Expected_Result_Value in the dataset's own Question Bank, on two versions of pandas, before the file was published. If one had not matched, the file would not be here.

Keep going on findi360

Related models

  • AR Analysis in SQL — DuckDB Notebook

    The whole receivables question bank answered in SQL. DuckDB reads the CSV, the Parquet file and the nested JSON where they sit, four views and one macro carry the thinking, and forty queries of two or three lines each answer everything from the ageing bucket to the overdue book corrected for cash nobody could place.

  • Trial Balance in Python — Jupyter Notebook

    The general ledger worked end to end in pandas: a trial balance that proves it balances, a profit and loss account by reporting line, actuals against budget, and a gross profit bridge that explains why profit grew less than sales.

  • Accounts Payable in Python — Jupyter Notebook

    The purchase ledger worked end to end: what is owed at any date, how much of it is overdue, how long suppliers really wait for their money, and the invoices that were posted twice and are still sitting in the balance.

Need a model we have not built yet?

Tell us what you need. Members vote, and the most-requested models are built first — free to download.

Educational model on illustrative data. Not investment, accounting or tax advice. © findi360 — share freely with attribution.