Creating Samples From CSV Files

Learn how to create samples with the help of a CSV file and raise exceptions for bad data.

CSV (Comma-Separated Values) can be used to define the rows of a spreadsheet. Within each row, the cell values are represented as text, separated by commas. When this data is parsed by Python’s csv module, each row can be represented by a dictionary where the keys are the column names and the values are the cell values from a particular row.

Get hands-on with 1400+ tech skills courses.