Skip to Content
Tableau Prep即学即用
book

Tableau Prep即学即用

by Carl Allchin
August 2022
Beginner to intermediate
463 pages
9h 22m
Chinese
China Electric Power Press Ltd.
Content preview from Tableau Prep即学即用
81
10
处理布尔数据
我最喜欢的有关数据的笑话是,“鬼最喜欢的数据类型是什么?”
“布尔数”。
既然说到这里,我们就来谈谈可能是最简单的数据类型,但它是我们在数据分析过
程中很多工作的核心,因此也是数据准备的重要组成部分——布尔数据。在本章中,
我们将介绍什么是布尔数据,以及为什么它在分析数据时很有用。
10.1
什么是布尔数据
布尔这个词来自数学家乔治
布尔。他是科克大学的第一位数学教授,他的定理最
终被应用于计算机。布尔数据只是对一个条件语句或测试的
True
(真)或
False
(假)
的响应。
10.1.1
为什么它在数据分析中如此有用
在我们使用的软件中,真或假的响应通常在幕后被编码为
1
0
。因此,使用布尔
数据的计算性能非常快。计算的基础是
1
0
,所以布尔数据很容易被计算机处理。
一列简单的
1
0
响应实际上在数据分析中惊人地有用,除了性能高的因素之外,
还有很多原因。
82
10
指标
在这里,指标是指一个或一组字段,它表明每条记录是否符合某些标准。这样
就可以在大多数数据工具中进行非常简单的分析。例如,如果你想统计有多少
客户拥有某种产品类型,在大多数工具中,将
1
0
的布尔指标相加就非常简
单(见图
10-1
)。
10
-
1
:指标显示为
1
表示有,
0
表示没有
Prep Builder
Desktop
中,你可以使用 ...
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

深度学习:核心原理与案例分析

深度学习:核心原理与案例分析

Posts & Telecom Press, Ahmed Menshawy
Python金融实战

Python金融实战

Posts & Telecom Press, Yuxing Yan
Python机器学习案例精解

Python机器学习案例精解

Posts & Telecom Press, Yuxi (Hayden) Liu
HBase管理指南

HBase管理指南

Posts & Telecom Press, Yifeng Jiang

Publisher Resources

ISBN: 9787519864439