Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “The following information was taken from the CSV file, filtered by the Betweenness
centrality
column.”
A block of code is set as follows:
{'domain': {'id': '131', 'name': 'Unified Twitter Taxonomy', 'description': 'A taxonomy of user interests. '}, 'entity': {'id': '913142676819648512', 'name': 'Cryptocurrencies', 'description': 'Cryptocurrency'}},
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
'annotations': 'annotations': [{'start': 10, 'end': 18, 'probability': 0.8568, 'type': 'Organization', 'normalized_text': 'Blackrock'},
Any command-line input or output is written as follows:
decompose = seasonal_decompose(df, model= 'additive').plot(observed=True, seasonal=True, trend=True, resid=True, weights=False)
Bold: Indicates a new term, an important word, or words that you see on screen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “Once we have filled in the mandatory requirements on the API page, we can press the blue Execute button, which will return the URL we can use.”
Tips or important notes
Appear like this.