June 2015
Intermediate to advanced
298 pages
7h 15m
English
Python offers us three common approaches to the general problem of sorting a list of complex items.
sorted() generator function. This will duplicate an object as part of sorting.sort() method and a key function. This will mutate the list into the requested order.In order to look at each of these in some detail, we need a collection of complex objects which we can sort. We'll use a simple dataset based on a case study in the NIST Engineering Statistics Handbook, section 7.1.6. See http://www.itl.nist.gov/div898/handbook for more information. ...
Read now
Unlock full access