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 anomaly
column gets the value 1
if it’s outside of the yhat
boundary.”
A block of code is set as follows:
combined_results = pd.merge( current_metric, forecast[['ds', 'yhat', 'yhat_lower', 'yhat_upper']], on='ds' )
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
# Convert the `seconds` representation into datetime object data_dict['ds'] = pd.to_datetime(data[0], unit='s') # Save the interface counters value retrieved in a `float` format data_dict['y'] = float(data[1]) metric_list.append(data_dict) df_metric = pd.DataFrame(metric_list)
Any command-line input or output is written as follows:
>>> pkts = sniff(filter="icmp and host 1.1.1.1", count=2)
Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “Click the Settings menu and then Security.”
Tips or important notes
Appear like this.