- Mastering Python Data Visualization
- Kirthi Raman
- 291字
- 2021-07-09 21:33:53
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."
- C語言程序設(shè)計(jì)基礎(chǔ)與實(shí)驗(yàn)指導(dǎo)
- Instant Zepto.js
- Java 9 Programming Blueprints
- Vue.js 3.0源碼解析(微課視頻版)
- 秒懂設(shè)計(jì)模式
- Learning ArcGIS Pro
- Magento 1.8 Development Cookbook
- 編譯系統(tǒng)透視:圖解編譯原理
- Responsive Web Design by Example
- Learning Ionic
- 關(guān)系數(shù)據(jù)庫與SQL Server 2012(第3版)
- Unreal Engine Game Development Cookbook
- Python實(shí)戰(zhàn)指南:手把手教你掌握300個(gè)精彩案例
- 深度學(xué)習(xí):基于Python語言和TensorFlow平臺(tái)(視頻講解版)
- 開發(fā)者測試