Syllabus

  1. 01ClassesTypes and objects, defining classes with attributes and methods, constructors and instance data, readable representations, and a project that turns a results spreadsheet into an experiment tracker.5 lessons
    1. 01From notebook code to classes
    2. 02Defining a class
    3. 03Constructors and instance attributes
    4. 04Readable objects: __repr__ and __str__
    5. 05Project: an experiment tracker
  2. 02Object-oriented programmingInheritance and super(), polymorphism and duck typing, dunder methods that make classes work with Python's operators, abstract base classes as explicit interfaces, encapsulation with properties, and a dataset-catalog project that combines them.6 lessons
    1. 01Inheritance and super()
    2. 02Polymorphism and duck typing
    3. 03Dunder methods
    4. 04Abstraction with abstract base classes
    5. 05Encapsulation and properties
    6. 06Project: a dataset catalog
  3. 03Functional programmingPure functions and immutable data, functions as values, lambda and closures, map, filter and reduce, pipelines built with composition and partial, and a reusable data-cleaning toolkit of higher-order functions.5 lessons
    1. 01Pure functions and immutable data
    2. 02Functions as values and lambda
    3. 03map, filter and reduce
    4. 04Building pipelines from functions
    5. 05Project: a data-cleaning toolkit
  4. 04LoggingReplace print debugging with the logging module: severity levels and basicConfig, named loggers with handlers and formatters, logging exceptions and tuning levels per component, and a fully logged import job.4 lessons
    1. 01From print to logging
    2. 02Loggers, handlers and formatters
    3. 03Logging errors and tuning levels
    4. 04Project: a logged import job