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即学即用
347
处理兑换率
38.2
Tableau Prep
中应用兑换率
利用
Preppin
Data
:第
6
周挑战赛(
https://oreil.ly/dMwG3
)的数据集,让我们完成
从英镑(
GBP
)到美元(
USD
)的货币转换。
38.2.1
1
步:为转换创建一致的数据粒度
首先,你需要导入输入数据(见图
38-1
和图
38-2
)。
38
-
1
:兑换率数据集
38
-
2
Sales(销售额)数据集
这两个数据集最初还没有准备好进行转换,因为你还没有一个字段用来连接它们。
对于这些数据集,需要将各个日期从按照天的方式“卷起”到按照星期的方式“卷起”,
以匹配图
38-1
中兑换率表中的
Date
列。这是数据识别的要求。最终,你需要决定
用什么频率来进行数据转换,然后找到该时间段内的兑换率,并确保该时间段级别
内的兑换率保持正确。
348
38
这个例子需要你找到最好和最坏的转换方案。换句话说,数据准备任务是找到每周
1
英镑所能兑换的美元的最小值和最大值。其他需要考虑的情况包括:
寻找一个时段内的平均值。
寻找“起始”或“结束”值,作为可能是该时间段内兑换价值的指标。
提出问题的背景,决定着最终你需要采用哪种技术。
38.2.2
2
步:将数据集连接在一起
使用
Prep Builder
中的连接步骤,现在可以将两个不同的数据集连接在一起(见图 ...
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