Lesson 1.3

Reading files and CSVs

Real data arrives as a slightly wrong file. Encodings, delimiters, and missing values are the first three problems you will meet.

Duration
7m
Level
Beginner
Students
28k students

Overview

Real data arrives as a slightly wrong file. Encodings, delimiters, and missing values are the first three problems you will meet.

In this lesson you will:

  • Read and write files safely with context managers
  • Parse CSV data and handle encoding issues
  • Deal with missing and malformed rows on load

Resources

pandas documentation

The official reference for the tools used in this lesson.