Please enable JavaScript.
Coggle requires JavaScript to display documents.
**14 Working with CSV Files and JSON Data ((Project: Removing the Header…
**14
Working with CSV Files and JSON Data
Project: Fetching Current Weather Data . 329
Step 1: Get Location from the Command Line Argument 330
Step 2: Download the JSON Data 330
Step 3: Load JSON Data and Print Weather 331
Ideas for Similar Programs 332
Project: Removing the Header from CSV Files . 324
Step 1: Loop Through Each CSV File 325
Step 2: Read in the CSV File . 325
Step 3: Write Out the CSV File Without the First Row . 326
Ideas for Similar Programs 327
JSON and APIs . 327
The csv Module . 320
Reader Objects 321
Reading Data from Reader Objects in a for Loop . 322
Writer Objects . 322
The delimiter and lineterminator Keyword Arguments 323
The json Module . 328
Reading JSON with the loads() Function . 328
Writing JSON with the dumps() Function . 329