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: “Create a histogram using the histplot
method in seaborn
and specify the data using the data
parameter of the method.”
A block of code is set as follows:
import numpy as np import pandas as pd import seaborn as sns
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
data.shape (30,2)
Any command-line input or output is written as follows:
$ pip install nltk
Tips or important notes
Appear like this.