Conventions
In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
A typical code snippet would look as follows:
def closest_station(lat, longi): stations = np.array([[41.995, -87.933], [41.786, -87.752]]) loc = np.array([lat, longi]) deltas = stations - loc[None, :] dist2 = (deltas**2).sum(1) return np.argmin(dist2)
The outputs of the code snippets are generally shown as the screenshots. This is how a screenshot looks:
New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "The plot of Monthly Income and Monthly Expense for a group of 400 people."
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.
URLs are shown as below:
https://pypi.python.org/pypi/pip
A lot of tables have been used to summarize the results of mathematical discussions and illustrate certain concepts.