

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 3
click for more info
Not enough gems
Cost: 6 gems
1: Data Formats
incomplete
2: Parsing JSON
incomplete
3: Variable-Depth JSON
incomplete
4: Fetching JSON
incomplete
5: CSV Files
incomplete
6: CSV Type Conversion
incomplete
7: Filtering CSV Rows
incomplete
8: Writing CSV Files
incomplete
9: Appending to CSV Files
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
Data providers pick the format that's convenient for them. As an analyst or engineer, you have the pain privilege of dealing with whatever shows up.
That usually means a small handful of formats over and over again. Some of the most common are:
JSON is everywhere. It's the default format for many APIs because it's so easy to work with, and can represent nested data easily:
{
"user": {
"name": "Alice",
"id": 123
},
"class": "CS 140"
}
CSV is more common for tabular data. It's a simple text format where each row is a record, and each column is a field:
user,score
Alice,150
Bob,200
Lane,90000
Miriah,90001
Parquet is a binary columnar format used in many larger analytics systems. You wouldn't open it in a text editor like CSV, but it's great for massive datasets because it's: