Reading CSV Files

Learn how to read CSV files using various methods in Python while adhering to the DRY principle.

Using form_dict() method

We’ll provide a common template for creating objects from CSV source data. The idea is to leverage the from_dict() methods of the various classes to create the objects our application uses:

Get hands-on with 1200+ tech skills courses.