Stage 1 · Lesson 8 of 9
CSV, JSON and Parquet
Data arrives in a few formats, and each has quirks. CSV is plain text that every tool can open, but it stores no types. So dates, IDs with leading zeros and all need care when you read it: pass dtype and parse_dates to read_csv.
holds nested records, like a customer with a list of orders inside, and pd.json_normalize flattens them into columns. Parquet is a compressed binary format stored column by column. It keeps each column's type and lets you read only the columns you need.
A file that is 1 GB as CSV is often 100 to 200 MB as Parquet, and it loads far faster. Convert a large CSV to Parquet once and work from that.
Common traptrusting read_csv to guess types correctly: a postcode column can quietly become an integer.
A question to check yourself, an AI practice session and 1 cheat sheet entry come with the full roadmap. Unlock
Resources for this stage
Start with· follow one of these
- CoursePaidGrokking Python Fundamentals
Design Gurus · Beginner · $50
Core Python with an exercise after nearly every lesson, before the data libraries
- BookFreePython for Data Analysis, 3rd Edition
Wes McKinney · Beginner
Free online: NumPy, pandas and plotting from pandas' own creator