DeskPrep

Production Python for Finance

The gap between a script that runs and code that is trusted with money.

Told as the Odyssey: 8 trials between Troy, the coursework that got you the offer, and Ithaca, which is production. Each trial is a myth that is also a real way Python goes wrong on a desk, and you clear it by doing the work.

8 trials · about 5 hours · £59 one-time, trial I free · Python runs in your browser

Your voyage

Reading your progress.

Trials
...
Points
...
Laurels
...
  1. Floating Point and Money

    Trial I, The Sirens

    Compare two books of amounts without generating false reconciliation breaks.

    About 35 min · beginner · Standard library

  2. Failing Loudly

    Trial II, The Lotus-Eaters

    Write functions that refuse bad input instead of returning a plausible wrong number.

    About 35 min · beginner · Standard library

  3. Data That Is Actually Broken

    Trial III, The Cyclops

    Take a raw trade file and produce a dataset you would put your name on.

    About 45 min · intermediate · pandas

  4. Time and the Trading Day

    Trial IV, Calypso

    Join two feeds recorded in different timezones without silently losing rows.

    About 40 min · intermediate · pandas

  5. Vectorisation

    Trial V, Aeolus

    Rewrite a row-by-row calculation so it runs on the whole book at once.

    About 35 min · intermediate · numpy + pandas

  6. Reproducibility

    Trial VI, Proteus

    Hand a colleague a simulation that gives them the number you quoted.

    About 35 min · intermediate · numpy

  7. Testing Numerical Code

    Trial VII, Scylla and Charybdis

    Test a pricer without a closed-form answer to compare against.

    About 40 min · advanced · numpy

  8. Structuring Research Code

    Trial VIII, The Bow

    Turn a working notebook into something a second person can run and change.

    About 40 min · advanced · Standard library

How a trial works

  1. 1BriefingThe trial's story, what it asks of you, and the pass mark.
  2. 2Predict, then runCommit to what working code prints. Your answer locks, then real Python runs in your browser.
  3. 3ExploreOperate a live instrument: the bits inside a float, a book you can break.
  4. 4Fix the codeRepair a function already in production. Each test case passes or fails in front of you.
  5. 5DebriefThe whole trial graded on the server, and the next leg of the voyage.

What this is

University teaches you to write Python that produces an answer. A desk needs Python whose answer can be defended, reproduced and handed to someone else. This course is the difference, taught the way the packs teach: you do the work, and you find out where you were wrong by being wrong.

Candidates and new joiners in quant research, trading, risk and middle office who can already write Python and have never had anyone review it.

Ranks and laurels

Each trial you clear moves you up the crew. Clear one with every point, the optional step included, and it earns a laurel.

  1. DeckhandOn boardingAboard, and not yet trusted with an oar.
  2. Oarsman1 clearedPulls their weight on a course someone else set.
  3. Helmsman3 clearedTrusted to hold a course through known water.
  4. Navigator5 clearedPlots the course the rest of the crew follows.
  5. Captain7 clearedAnswers for the whole ship.
  6. Home in Ithaca8 clearedWrites Python a desk will trust with money.