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
Uses csv to read and write delimited records during data extraction, cleaning, and conversion.
How deep it goes
Demonstrates readers, writers, delimiters, quoting, and dictionary output, then applies them in a cleaning exercise.
Examples
Uses Illinois temperature records and a Cook County weather-data extraction exercise.
What you can do after
Apply it via Python’s csv module to read, clean, and write 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 →

Also covered in

What to know first

Related concepts

Questions about csv

What is csv?

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

Which Manning books explain csv?

The Quick Python Book, Fourth Edition, Learn AI-Assisted Python Programming, Second Edition, Python Workout: 50 ten-minute exercises and Python Workout, Second Edition.

What should I know before learning csv?

Manning books that teach csv usually introduce newline, CSV and loop first.

What is the difference between csv and pickle format?

The csv module is Python’s standard-library module for reading and writing comma-separated and other delimiter-separated tabular data. The pickle format is Python’s serialization format for encoding Python objects so they can be stored and later loaded.

What is csv part of?

Csv is part of standard library. A standard library is a collection of reusable modules, types, functions, APIs, and other facilities distributed with a programming language implementation or platform.

What are the parts of csv?

Csv includes DictReader.

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.