1.3.2. Organizing in Tables#

Our readings, from Computational and Inferential Thinking [ADW21], show how to create tables and manipulate them to organize the data in them. These again use the datascience library, especially its Table object.

Reading Questions

  • What percentage of Napoleon’s army survived his Russian campaign?

  • How would you select all the NBA players whose position was center (“C”) and then sort them by salary?

  • How would you give every player a 2% raise and store this in a new column?

  • Which ice cream cone gives the most stars per $?