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即学即用
78
9
拼写不当或不一致问题
拼写不当往往是由于在进行
IT
系统配置时规划不周,或者没有考虑到数据分析师将
不可避免地被赋予分析系统所生成的数据的任务。处理这些数据可能很简单,也可
能会令人头疼。
9.3
常用于字符串数据准备的函数
这些是你在准备字符串数据时经常使用的函数:
split()
根据指定的字符将较长的数据串分解成较短的字符串。通常情况下,可以从业
务系统中导出与符号合并在一起的数据字段。这个函数能够将这些字符串分解
成独立的数据字段。
trim()
删除任何给定字段中的前导或尾部的空格。默认情况下,
BI
软件并不会聪明到
能自动忽略前导或尾部的空格,并将该字符串视为与没有空格的字符串相同。
upper()
lower()
将所有字母字符转换为大写或小写。如果大小写匹配,则可以将不同输入的数
据集
join
(连接)在一起。如果大小写不匹配,即使字符串相同,连接操作也
不会认为它们是相同的。
left()
right()
从字符串的左边或右边提取指定数量的字符。例如,如果想只从客户或员工的
名字中提取首字母,则可以使用
left()
函数来获取名字的第一个字符。
mid()
从字符串中的指定位置开始提取特定数量的字符。结合
find()
findnth()
,这
是一个强大的函数,它允许你分解更复杂的字符串,并返回长字符串中间的子串。
find()
定位字符串中指定字符或子串的首次出现,并返回其在字符串中的位置。如果
一个子串在一个较大的字符串中的位置不一致,这可以帮助你确定它的起始位
置。
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