April 2018
Intermediate to advanced
408 pages
10h 42m
English
In this application, we're using a very simple filter. The entire filter process is embodied in the following function:
def anscombe_filter( set_id: str, raw_data_map: Dict[str, List[Pair]] ) -> List[Pair]: return raw_data_map[set_id]
We made this trivial expression into a function for three reasons:
While a simple lambda would work, it wouldn't be quite as convenient to test.
For error handling, we've done exactly nothing. We've focused on what's sometimes called the happy path: an ideal sequence of ...