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即学即用
370
40
40
-
8
:通过端口
9004
连接到 localhost
40.3
使用脚本步骤
由于本章是针对
Prep Builder
新手的,所以我们先来介绍一下创建行
ID
的简单方法,
ID
可以作为分析的
ID
。在
Prep Builder 2020.1
中,
Prep Builder
增加了使用
ROW_
NUMBER()
函数的功能,但在此之前,我们将在这里介绍的技术是最简单的、将行
ID
添加到一个不存在的数据集中的方法。
你会发现,用
Python
工具在输入中添加一个数据字段比添加多行程序代码行更容易
做到。
371
连接编程脚本
本例的数据集是
Superstore
(超市),它是每次安装
Tableau Desktop
Prep
时附带
的演示数据集。该数据集被添加到
My Tableau Prep Repository
Datasources
文件
夹中,这是一组添加到计算机的
My Documents
Documents
文件夹中的文件。在
这个例子中,我们将在
Superstore
中添加一个名为
New Index
的新数据字段,它可
以作为
Superstore
的参考,每个产品、每个订单都有一个
ID
连接到
Superstore
后,添加一个清理步骤来创建一个计算字段,它将用于存放受脚
本影响的值。创建一个只包含值
1
的计算字段,并将其命名为“ ...
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