Your Turn

pandas frames and series are convenient data containers that add an extra level of abstraction and consistency on top of numpy arrays. Frames and series are great for importing and exporting data from and to tabular files; structuring, restructuring, merging, and aggregating data; and performing simple and advanced arithmetic operations on it. And, unlike the R language frames, the size of pandas frames is limited only by your imagination, not by the size of your computer’s RAM.

Lynx Trappings*

Write a program that uses the annual Canadian lynx trappings data[25] and reports total lynx trappings by decade (ten years), sorted in the reverse order (most “productive” decade first). The program should download the data file into the ...

Get Data Science Essentials in Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.