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 delete_entry() function is used to remove an entry, showing how data can be deleted from the store”
A block of code is set as follows:
def process_in_batches(data, batch_size): for i in range(0, len(data), batch_size): yield data[i:i + batch_size]
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
user_satisfaction_scores = [random.randint(1, 5) for _ in range(num_users)]
Any command-line input or output is written as follows:
$ mkdir data pip install pandas
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: “It involves storing data on remote servers accessed from anywhere via the internet, rather than on local devices”
Tips or important notes
Appear like this.