Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Start with the data

For now, let’s not worry about creating the Android app; you’ll get to that soon enough. Instead, let’s solve the central data wrangling problem and then, when you have a working solution, we’ll worry about porting your solution to Android. We’ll begin by getting the data into a format you can easily process with Python.

Most spreadsheet programs can export data to the widely used CSV format. The club has done this for you and created a file called PaceData.csv, which includes the data for each of the rows from the original the spreadsheet.

Here’s a sample of the raw data from the start of the CSV:

Do this!

Grab a copy of PaceData.csv from this book’s support website.

image with no caption

Sharpen your pencil

You somehow have to model the data from the CSV file in your Python program. Can you think of a data structure that might help here? Justify your selection.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint