Python Data Science Cookbook cover

Python Data Science Cookbook

No rating yet
Word count
292K words
Chapters
10
ISBN
9787115435101

Tags

Summary

This is the Chinese translation of Python Data Science Cookbook, by Gopi Subramanian, a data scientist with more than a decade of experience in data mining and machine learning. The book follows a recipe format: each task first sets out the "getting ready" section, then the "how to do it" and "how it works" sections, and finally extends with "there's more" and "see also," so readers can dip in as needed or work through it systematically from the start. It begins with Python fundamentals, covering data structures and programming techniques commonly used in data science—dictionaries, dictionaries of dictionaries, tuples, sets, list comprehensions, iterators, and generators—then introduces how to set up a Python scientific computing environment. Two chapters on data analysis follow, covering data exploration, descriptive statistics, data visualization, and deeper data processing. The book then moves into data mining topics, discussing feature processing and similarity and distance measures—problems of the "needle in a haystack" kind. The second half turns to machine learning: linear regression, logistic regression, regularization and variable selection, classification and clustering, and model evaluation methods. It then covers ensemble methods (bagging, boosting, voting), random forests, rotation forests, extremely randomized trees, and other tree-growing models, closing with "large-scale machine learning—online learning," which introduces the perceptron, stochastic gradient descent for regression and classification, and how to model data that cannot fit into memory all at once in a streaming fashion. The examples span numeric and text datasets and balance mathematical principles with runnable code, making the book a useful desk reference for data science algorithms. Because the original was published in 2015, the code is based on the numpy, scipy, scikit-learn, and matplotlib ecosystem of that time, and readers should watch for version differences.

Editor's review

市面上的数据科学书大致分两类:一类讲工具(pandas、NumPy 怎么用),一类讲理论(统计学习、机器学习公式)。这本书走的是第三条路——以任务为单元的“算法菜谱”。每个小节都是一个可以独立完成的小实验:给定问题、准备数据、写出代码、解释原理,再补一段延伸讨论。想找“某个模型的 scikit-learn 实现怎么写”“变量选择该用哪种正则化”的读者,可以像查手册一样直接翻到对应章节。 它的价值在于覆盖面:从容器与迭代器这类语言细节,一直到集成方法、旋转森林、极端随机树和在线学习,国内同类书里能把这一串内容串起来的并不多。作者有十多年工业界经验,讲解时更关注“为什么这样选算法”,而不是只把公式堆出来。 需要提醒的是,原书 2015 年出版,中文版 2016 年面世,示例代码中引用的库版本和 API 与今天的 Python 3.12、scikit-learn 1.x 已有出入;部分中文术语也带有直译痕迹,个别长句需要放慢速度读。如果读者想要的是最新版工具手册,更适合选《Python数据科学手册》或《利用Python进行数据分析》;但如果想系统补齐算法层面的“工具箱”,并且不介意动手把示例调试通,这本书依然值得放在书架上。

Who it's for

A good fit for

  • 已有 Python 基础语法,想系统了解数据科学算法全貌的读者
  • 习惯“按任务查代码”的工程师,需要随时翻阅的算法参考手册
  • 准备面试或转岗,想补齐回归、集成方法、在线学习知识点的从业者
  • 数据挖掘、文本挖掘方向的学生,可作课程之外的实践补充

Not a good fit for

  • 完全没有编程经验的纯零基础读者,第 1 章之后的节奏会偏快
  • 只想要一份最新 scikit-learn / pandas 使用手册的人
  • 希望得到端到端完整项目案例(从爬虫到部署)的读者

Reading tips

  1. 先读第 1、2 章打好结构与环境基础,再按兴趣跳读后面章节。
  2. 每节都动手复现代码,遇到 API 报错先查官方文档,不要卡在旧版本写法上。
  3. 第 6 至 9 章建议配合《统计学习方法》一类理论书对照阅读,理解会更扎实。
  4. 把书中的算法清单当作自查表,逐个记录自己是否真正跑通过一遍。

About the publisher

Posts & Telecom Press China · Founded in 1953

Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.

Contents

  1. Chapter 1 Python in Data Science
  2. Chapter 2 The Python Environment
  3. Chapter 3 Data Analysis—Exploration and Debate
  4. Chapter 4 Data Analysis—Deeper Understanding
  5. Chapter 5 Data Mining—Finding a Needle in a Haystack
  6. Chapter 6 Machine Learning 1
  7. Chapter 7 Machine Learning 2
  8. Chapter 8 Ensemble Methods
  9. Chapter 9 Growing Trees
  10. Chapter 10 Large-Scale Machine Learning—Online Learning

FAQ

这本书和《Python数据科学手册》是同一本吗?
不是。本书原名为 Python Data Science Cookbook,作者是印度的 Gopi Subramanian,2016 年由人民邮电出版社出版;《Python数据科学手册》原名 Python Data Science Handbook,作者为 Jake VanderPlas,以 NumPy、pandas、Matplotlib、scikit-learn 工具链为主。两者定位不同。
书里的代码现在还能直接运行吗?
原书基于 2015 年前后的 Python 2/3 与旧版 scikit-learn、pandas 编写。用当前版本运行时,部分导入路径、函数参数和绘图接口已经变化,需要按官方文档改写。建议在虚拟环境中固定较旧版本,或边读边按新版 API 调试。
零基础可以直接从这本开始学吗?
不建议把这本书当作第一本编程书。它假定读者至少熟悉变量、函数、列表等基本概念。零基础读者可先读一本 Python 入门书,再回到本书第 1 章梳理数据结构,之后的学习会顺畅很多。
这本书对数学基础要求高吗?
作者在前言中说明会提供理解算法所需的数学知识,但并未系统讲授微积分、线性代数和概率统计。具备本科水平的线性代数与概率基础,读回归、正则化和梯度下降部分会轻松许多。

Comments

Find this book

This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.

Top rated in the same category