9. Files and Exceptions


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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.