Python Quest

Track 8 · Lesson 10 of 11

Small data pipelines

Structure file-processing programs as a pipeline of small functions: read, clean, transform and write, each testable on its own.

About 45 minAdvanced4 exercises

You will be able to

  • Split a file-processing job into read, clean, transform and write stages, one function each
  • Write a clean function that normalises one record or rejects it
  • Combine the stages in a run function that reports how many records were used and skipped
  • Make a pipeline safe to re-run: same input, same output

Included with a Formula Quest membership

It has 4 graded exercises with feedback, hints and solutions. Python Quest is included in Formula Quest memberships that cover Python; membership and billing are managed on Formula Quest.

View Formula Quest memberships

Tracks 1 and 2, the first lesson of every track, the playground and the dataset library are free.