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: “Mount the downloaded WebStorm-10*.dmg
disk image file as another disk in your system.”
A block of code is set as follows:
import pandas as pd orig_df = pd.DataFrame({ 'age': [45, 43, 54, 56, 54, 52, 41], 'gender': ['M', 'F', 'F', 'M', 'M', 'F', 'M'], 'group': ['H1', 'H1', 'H2', 'H3', 'H2', 'H1', 'H3'], 'target': [0, 0, 1, 0, 1, 1, 0]})
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
in_encrypt = open("molecule_enc.bin", "rb") nonce, tag, ciphertext = [in_encrypt.read(x) for x in (16, 16, -1) ] in_encrypt.close()
Any command-line input or output is written as follows:
python -m pytest
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: “You might be able to find other images of cracked products or you could generate new images using a process called data augmentation.”
Tips or important notes
Appear like this.