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: “This command will pull the hello-world
image from the Docker Hub public repository and run the application in it. “
A block of code is set as follows:
import pandas as pd url = 'https://raw.githubusercontent.com/jbrownlee/Datasets/master/pima-indians-diabetes.data.csv' df = pd.read_csv(url, header=None) df["newcolumn"] = df[5].apply(lambda x: x*2) print(df.columns) print(df.head()) print(df.shape)
Any command-line input or output is written as follows:
$ sudo apt install docker.io
This is how the filename above the code snippet will look:
Cjava.py
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 should ensure that the Use WSL 2 instead of Hyper-V option is selected on the Configuration page.”
Tips or important notes
Appear like this.