官术网_书友最值得收藏!

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "We can measure that using the r2_score() function from sklearn.metrics."

A block of code is set as follows:

import numpy as np 
import pandas as pd 
from sklearn import tree 
 
input_file = "c:/spark/DataScience/PastHires.csv" 
df = pd.read_csv(input_file, header = 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:

import numpy as np
import pandas as pd
from sklearn import tree

input_file = "c:/spark/DataScience/PastHires.csv"
df = pd.read_csv(input_file, header = 0)

Any command-line input or output is written as follows:

spark-submit SparkKMeans.py  

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "On Windows 10, you'll need to open up the Start menu and go to Windows System | Control Panel to open up Control Panel."

Warnings or important notes appear like this.
Tips and tricks appear like this.
主站蜘蛛池模板: 建水县| 汪清县| 富川| 仙居县| 枞阳县| 泰来县| 汽车| 江城| 双鸭山市| 临西县| 陇川县| 鹤壁市| 泰州市| 清涧县| 当阳市| 临江市| 米脂县| 开鲁县| 龙门县| 寿阳县| 龙山县| 竹北市| 沂南县| 海宁市| 柞水县| 和顺县| 敦化市| 廉江市| 瑞丽市| 峨山| 政和县| 舞阳县| 光山县| 兴化市| 桦川县| 明溪县| 商丘市| 黑水县| 和林格尔县| 吉首市| 霍邱县|