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: “We will be looking at CLASS=='Y'
versus CLASS=='N'
”.
A block of code is set as follows:
#Load Iris dataset as a csv file data=pd.read_csv(r'C:\Users\MEDIN\Desktop\Iris.csv')
The #
sign is used to comment code; such lines of code will not be run by Python. The paths in the book may be replaced by the paths on your computer. In this example, C:\Users\MEDIN\Desktop
may be replaced by \Users\path\Desktop
or another path where files of interest for the book may be located.
Tips or important notes
Appear like this.