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 used year
, month
, and quarter
to capture the year, month, and quarter, respectively, in new columns of the DataFrame.”
A block of code is set as follows:
date = "2024-05-17" rng_hr = pd.date_range(date, periods=20, freq="h") rng_month = pd.date_range(date, periods=20, freq="ME") df = pd.DataFrame({"date1": rng_hr, "date2": rng_month})
Any command-line input or output is written as follows:
pip install yellowbrick
Tips or important notes
Appear like this.