liveBook · Manning

Csv

The csv module is Python’s standard-library module for reading and writing comma-separated and other delimiter-separated tabular data.

How 4 Manning books explain it

The Quick Python Book, Fourth Edition

CSV is a Python library for reading and writing tabular data in comma-separated and other delimited formats.

How it is used
Handles CSV and other delimited files during data-processing workflows.
How deep it goes
Works through readers, writers, and dictionary output with file examples, without examining module internals.
Examples
Uses pipe-delimited temperature rows, quoted date fields, and an Illinois weather extraction exercise.
What you can do after
Apply it via Python’s csv.reader, csv.writer, and csv.DictWriter to parse and export delimited records.

Read how The Quick Python Book, Fourth Edition explains csv →

Learn AI-Assisted Python Programming, Second Edition

The csv module is Python's standard-library module for reading and writing comma-separated and other delimiter-separated tabular data.

How it is used
Uses CSV files as a practical source of tabular data for filtering and aggregation.
How deep it goes
Explains importing csv, reading rows, and contrasting module use with manual splitting; it stops short of implementation internals.
Examples
Demonstrates reading NFL offensive statistics and totaling passing yards for quarterbacks.
What you can do after
Apply it via Python’s standard library to read CSV rows and process tabular records.

Read how Learn AI-Assisted Python Programming, Second Edition explains csv →

Python Workout: 50 ten-minute exercises

The Python standard-library module that provides functionality for reading and writing comma-separated values and related delimited records.

How it is used
Handles reading and writing CSV, TAB-delimited, and other delimited text records.
How deep it goes
Explains row writing and a field-selection exercise, while deferring advanced format variation to pandas.
Examples
Uses vegetable records, writer rows, and passwd-to-TAB conversion as concrete examples.
What you can do after
Build it from scratch by selecting fields, choosing delimiters, and writing structured records to CSV files.

Read how Python Workout: 50 ten-minute exercises explains csv →

Python Workout, Second Edition

The csv module is Python's standard-library module for reading and writing comma-separated and other delimiter-separated tabular data.

How it is used
Handles reading and writing delimiter-separated text files, especially tabular data, logs, and configuration-like records.
How deep it goes
Explains delimiters, readers, writers, linewise processing, and a passwd transformation while stopping short of deeper parser internals.
Examples
Uses vegetable records, writer rows, and Unix passwd records transformed into tab-separated username and user-ID output.
What you can do after
Apply it via Python’s csv module to transform delimiter-separated files into selected output fields.

Read how Python Workout, Second Edition explains csv →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.