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

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.

主站蜘蛛池模板: 壤塘县| 准格尔旗| 安福县| 崇明县| 高安市| 玉林市| 尼勒克县| 互助| 彝良县| 三穗县| 商城县| 滦南县| 孟津县| 平湖市| 甘德县| 常州市| 隆德县| 马鞍山市| 临城县| 威海市| 石柱| 东安县| 太原市| 宁化县| 巴彦县| 仁化县| 准格尔旗| 罗定市| 那曲县| 丹东市| 池州市| 余江县| 莒南县| 台山市| 富民县| 仁布县| 时尚| 曲周县| 达拉特旗| 民乐县| 洪雅县|