Practical Python: Text and Data Automation

12 lessons. Clean CSV and JSON, validate records, summarize logs, and build repeatable reports.

Python learners who want to automate text and data tasks.

Before you start: Python variables, loops, functions, lists and dictionaries. Learn these basics in Python Foundations.

12 lessons · 28 exercises and projects. 2 free lessons and 5 free exercises. No account needed for free previews.

What you will learn

  • Clean and validate CSV and JSON records.
  • Build a contact-list cleaner and log-summary generator.
  • Build a transaction-report pipeline using synthetic data.

Lessons are included in Course access. Exercises and projects are included in Practice Pack access. Complete Bundle includes both. Compare access options.

← All courses and learning paths · Suggested next course: SQL for Real-World Data

Use Python to automate everyday data work

Practice cleaning CSV and JSON records, validating incoming data, and summarizing logs. Build repeatable reports while learning how to check missing values and malformed input.

Start with a free Python automation lesson or try a free Python exercise.

Course lessons

01Designing small automation tasks and input/output contractsWrite a pure transformation with an explicit output shape and a policy for blank input.Free preview02Cleaning whitespace and normalizing text safelyChoose boundary trimming or whitespace collapsing without altering unrelated text.Free preview03Extracting and validating structured textParse delimiters and validate complete identifiers with explicit character rules.Course04Reading CSV correctly, including quoted fieldsParse quoted CSV records with the standard library and select columns by header.Course05Cleaning CSV records and reporting rejected rowsSeparate structural and value validation while retaining source row numbers.Course06Reading and transforming JSONParse JSON and verify the top-level shape before transforming records.Course07Validating records with useful error messagesReturn structured field errors and distinguish integers from booleans.Course08Deduplicating and merging records deterministicallyImplement explicit first-wins and whole-record replacement policies.Course09Parsing logs and summarizing eventsParse a declared log grammar and aggregate known event levels.Course10Working with dates, missing values, and malformed recordsValidate exact calendar dates and apply defaults without losing meaningful values.Course11Producing CSV, JSON, and readable text reportsRender deterministic reports with correct escaping and explicit ordering.Course12Building repeatable pipelines with tests and clear failure handlingCompose normalization, validation, aggregation and rendering into a testable pipeline.Course