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: “To begin, we need to import the required libraries: streamlit
, pandas
, numpy
, matplotlib
, and seaborn
.”
A block of code is set as follows:
import pandas as pd import numpy as np import seaborn as sns pd.set_option('display.float_format', lambda x: '%.2f' % x) df = pd.read_csv('data/ trafficsources.csv') df.describe()
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
# Define the model with pm.Model() as model_pymc: alpha = 1.0/daily_sales.sales.mean() lambda_1 = pm.Exponential("lambda_1", alpha) lambda_2 = pm.Exponential("lambda_2", alpha)
Any command-line input or output is written as follows:
pip install tap-googleads
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: “Analytics can be split into four areas or pillars: descriptive, predictive, diagnostic, and prescriptive analytics.”
Tips or important notes
Appear like this.