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

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: "First we use norm() from SciPy to create normal distribution samples and later, use hstack() from NumPy to stack them horizontally and apply gaussian_kde() from SciPy."

A block of code is set as follows:

import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
students = pd.read_csv("/Users/Macbook/python/data/ucdavis.csv")
g = sns.FacetGrid(students, palette="Set1", size=7)
g.map(plt.scatter, "momheight", "height", s=140, linewidth=.7, edgecolor="#ffad40", color="#ff8000")
g.set_axis_labels("Mothers Height", "Students Height")

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 blockspring 
import json  

print blockspring.runParsed("stock-price-comparison", 
   { "tickers": "FB, LNKD, TWTR", 
   "start_date": "2014-01-01", "end_date": "2015-01-01" }).params

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

conda install jsonschema

Fetching package metadata: ....
Solving package specifications: .
Package plan for installation in environment /Users/MacBook/anaconda:

The following packages will be downloaded:

 package | build
 ---------------------------|-----------------
 jsonschema-2.4.0 | py27_0 51 KB

The following NEW packages will be INSTALLED:

 jsonschema: 2.4.0-py27_0

Proceed ([y]/n)?

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: "Further, you can select the Copy code option to copy the contents of the code block into Canopy's copy-and-paste buffer to be used in an editor."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

主站蜘蛛池模板: 扶绥县| 葫芦岛市| 海晏县| 汕尾市| 大荔县| 时尚| 曲沃县| 六安市| 泌阳县| 阿城市| 山阳县| 三门峡市| 历史| 宣城市| 武定县| 赤壁市| 佳木斯市| 巴彦淖尔市| 新密市| 河北区| 镇远县| 重庆市| 泗水县| 沙雅县| 曲阜市| 太保市| 清远市| 承德县| 句容市| 宁化县| 沐川县| 卓尼县| 平陆县| 黑河市| 始兴县| 黔西县| 镇巴县| 旬阳县| 称多县| 天镇县| 全南县|