From the course: Data Ingestion with Python
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Challenge: CSV to JSON - Python Tutorial
From the course: Data Ingestion with Python
Challenge: CSV to JSON
(bright electronic music) - [Instructor] A lot of times, you'll find yourself converting one format to another. Write code that converts taxi.csv.bz2, which is in CSV format, to taxi.jl, which has one JSON object per line. Note that you need to convert the types in order to save them in the right type in the JSON file.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.