Skip to Content
Python数据分析基础
book

Python数据分析基础

by Clinton W. Brownley
August 2017
Intermediate to advanced
274 pages
7h 44m
Chinese
Posts & Telecom Press
Content preview from Python数据分析基础
222
9
5
个标准模块只是
Python
标准库中所有模块的一小部分。实际上,
Python
标准库中有
超出
35
个分类,每个分类中都提供了关于某个专题的各种各样的模块和函数。因为这
些模块都是内置于
Python
中的,所以你可以用
import
语句直接使用它们,例如:
from
itertools import accumulate
或者
from statistics import mode
。要了解更多关于
Python
标准模块的信息,可以参考
Python
标准库(
https://docs.python.org/3/library/index.html
)。
9.1.2
 内置函数
同上面刚讨论过的标准模块一样,有些内置函数在以前的章节中没有涉及,但是它们对于
数据处理和分析非常重要。和模块一样,在特定的数据分析任务中,这些函数是可以发挥
作用的。将下面这些函数加入你的
Python
工具箱是非常有用处的。
enumerate()
将一个序列扩展为一个元组
(
index
,
value
)
列表。
filter()
在一个序列上应用一个函数,返回使函数为真的序列中的值。
zip()
将两个序列中相同位置的值合并为一个元组,从而使两个序列合并成一个序列。
这些函数是内置在
Python
中的,所以你可以直接使用它们。要了解更多关于
Python
内置
函数的信息,可以参考
Python
标准库(
https://docs.python.org/3/library/functions.html
)。
外,看一下别人是如何使用这些函数完成特定分析任务的对你也很有帮助。如果你想学 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

数据驱动力:企业数据分析实战

数据驱动力:企业数据分析实战

Carl Anderson
大数据项目管理:从规划到实现

大数据项目管理:从规划到实现

Ted Malaska, Jonathan Seidman

Publisher Resources

ISBN: 9787115463357