9. Files and Exceptions

Objectives

In this chapter, you’ll:

Image Understand the notions of files and persistent data.

Image Read, write and update files.

Image Read and write CSV files, a common format for machine-learning datasets.

Image Serialize objects into the JSON data-interchange format—commonly used to transmit over the Internet—and deserialize JSON into objects. ...

Get Python for Programmers now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.