Skip to Content
Automate the Boring Stuff with Python, 2nd Edition
book

Automate the Boring Stuff with Python, 2nd Edition

by Al Sweigart
November 2019
Beginner to intermediate
592 pages
14h 43m
English
No Starch Press
Content preview from Automate the Boring Stuff with Python, 2nd Edition

16WORKING WITH CSV FILES AND JSON DATA

Image

In Chapter 15, you learned how to extract text from PDF and Word documents. These files were in a binary format, which required special Python modules to access their data. CSV and JSON files, on the other hand, are just plaintext files. You can view them in a text editor, such as Mu. But Python also comes with the special csv and json modules, each providing functions to help you work with these file formats.

CSV stands for “comma-separated values,” and CSV files are simplified spreadsheets stored as plaintext files. Python’s csv module makes it easy to parse CSV files.

JSON (pronounced “JAY-sawn” or “Jason”—it ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Automate the Boring Stuff with Python

Automate the Boring Stuff with Python

Al Sweigart

Publisher Resources

ISBN: 9781098122584Errata Page