Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
ifelseの使い方
Search
Takato Shiroto
September 10, 2019
Technology
0
130
ifelseの使い方
Exploratoryでのifelse関数の使い方を紹介しています。
Takato Shiroto
September 10, 2019
Tweet
Share
More Decks by Takato Shiroto
See All by Takato Shiroto
Exploratory v6.7の紹介
takatoshiroto
0
900
Exploratory v6.6の紹介
takatoshiroto
0
1.6k
Exploratory v6.5の紹介
takatoshiroto
0
5.1k
コンバージョン率と信頼区間の推移を可視化する方法
takatoshiroto
1
300
Exploratory Hour #104 - 別の列の値をもとに、カテゴリー列の値の順序を指定したい
takatoshiroto
0
170
Exploratory Hour #105 - 元のデータ順をもとに、カテゴリー列の値の順序を指定したい
takatoshiroto
1
230
Exploratory Hour #102 - complete関数を使って2つの時間の間の値を生成したい
takatoshiroto
0
99
Exploratory Hour #103 - 仕事の開始・終了時間データから、どの時間に何人働いているか知りたい
takatoshiroto
0
97
Exploratory v6.4の紹介
takatoshiroto
0
5.8k
Other Decks in Technology
See All in Technology
適材適所の技術選定 〜GraphQL・REST API・tRPC〜 / Optimal Technology Selection
kakehashi
1
730
RubyのWebアプリケーションを50倍速くする方法 / How to Make a Ruby Web Application 50 Times Faster
hogelog
3
950
The Role of Developer Relations in AI Product Success.
giftojabu1
0
150
10XにおけるData Contractの導入について: Data Contract事例共有会
10xinc
7
720
SkiaとImpellerについて
moriya0130
0
140
オープンソースAIとは何か? --「オープンソースAIの定義 v1.0」詳細解説
shujisado
11
1.5k
Amazon CloudWatch Network Monitor のススメ
yuki_ink
1
210
A Tour of Anti-patterns for Functional Programming
guvalif
0
280
【LT】ソフトウェア産業は進化しているのか? #Agilejapan
takabow
0
110
AGIについてChatGPTに聞いてみた
blueb
0
130
OCI Network Firewall 概要
oracle4engineer
PRO
0
4.2k
SAP Community and Developer Update
sygyzmundovych
0
350
Featured
See All Featured
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
4
380
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
6.8k
The Cult of Friendly URLs
andyhume
78
6k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
Ruby is Unlike a Banana
tanoku
97
11k
Intergalactic Javascript Robots from Outer Space
tanoku
269
27k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
356
29k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.1k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
YesSQL, Process and Tooling at Scale
rocio
169
14k
Bootstrapping a Software Product
garrettdimon
PRO
305
110k
Transcript
EXPLORATORY 1
None
3 εϐʔΧʔ ଜཬҮ࠸ EXPLORATORY ུྺ HP(Hewlett Packard)Ͱ100ਓΛ͑ΔӦۀνʔϜΛ͍ɺ eCommerceɺςϨηʔϧεɺϑΟʔϧυηʔϧεͳͲଟذʹΘͨΔϏ δωεͷϚωδϝϯτɺϓϥϯχϯάΛܦݧɻࣾ֎Ͱੵ͞Εͨ େͳσʔλΛ׆༻ͯ͠ϏδωεΛͤ͞ΔͨΊʹσʔλαΠΤϯ
εʹཪଧͪ͞Εͨҙࢥܾఆ͕ॏཁͩͱΛ࣋ͬͯΔɻݱࡏ Exploratory, incͰϏδωε։ൃʹΊΔ͔ͨΘΒσʔλαΠΤϯεษ ڧձͳͲͷΛ௨ͯ͠ɺص্ͷۭͰऴΘΒͳ͍ຊͷҙຯͰ׆༻ Ͱ͖ΔσʔλαΠΤϯεͷීٴʹऔΓΉ
ࠓिͷؾʹͳΔ࣭ 1. ͋Δ݅ʹϚον͍ͯ͠Δ͔Ͳ͏͔Ͱάϧʔϓ͚͍ͨ͠ʢifelseʣ 2. ෳͷ݅ʹϚον͍ͯ͠Δ͔Ͳ͏͔Ͱάϧʔϓ͚͍ͨ͠ʢifelseʣ
͋Δ݅ʹϚον͍ͯ͠Δ͔Ͳ͏ ͔Ͱάϧʔϓ͚͍ͨ͠ʢifelseʣ
ച্͕1,000υϧҎ্͔Ͳ͏͔
None
None
None
ཧԋࢉࢠ ԋࢉࢠ ҙຯ ྫ == ʹ͍͠ customer == “A” !=
ʹ͘͠ͳ͍ customer != “A” > ΑΓେ͖͍ sales > 35 >= Ҏ্ sales >= 35 < ΑΓখ͍͞ sales < 35 <= ҎԼ sales <= 35 %in% ؚΉʢͲΕ͔ʹ͍͠ʣ country %in% c(“China”, “Japan”) %nin% ؚ·ͳ͍ʢͲΕʹ͘͠ͳ͍ʣ country %nin% c(“China”, “Japan”) 10
ෳͷ݅ʹϚον͍ͯ͠Δ͔Ͳ͏ ͔Ͱάϧʔϓ͚͍ͨ͠ʢifelseʣ
̍ͭͷ݅ʹϚον
sales ≧ 1,000 ̍ͭͷ݅ʹϚον
sales ≧ 1,000 & profit ≧ 100 ෳͷ݅ʹϚονʢandʣ
15 customer ID sales profit sales͕1000Ҏ্ profit͕10Ҏ্ sales͕1000Ҏ্͔ͭ profit͕10Ҏ্ AA-10315102
544.7 17 FALSE TRUE FALSE AA-10315120 2713.4 1 TRUE FALSE FALSE AA-10315139 2955.8 32 TRUE TRUE TRUE AA-103151402 4780.6 41 TRUE TRUE TRUE AA-103151404 753.5 2 FALSE FALSE FALSE AA-1031545 368.3 5 FALSE FALSE FALSE AA-1031548 68.1 1 FALSE FALSE FALSE AA-1031558 545.4 24 FALSE TRUE FALSE ෳͷ݅ʹϚονʢandʣ
sales ≧ 1,000 | profit ≧ 100 ෳͷ݅ʹϚονʢorʣ
17 customer ID sales profit sales͕1000Ҏ্ profit͕10Ҏ্ sales͕1000Ҏ্͘͠ profit͕10Ҏ্ AA-10315102
544.7 17 FALSE TRUE TRUE AA-10315120 2713.4 1 TRUE FALSE TRUE AA-10315139 2955.8 32 TRUE TRUE TRUE AA-103151402 4780.6 41 TRUE TRUE TRUE AA-103151404 753.5 2 FALSE FALSE FALSE AA-1031545 368.3 5 FALSE FALSE FALSE AA-1031548 68.1 1 FALSE FALSE FALSE AA-1031558 545.4 24 FALSE TRUE TRUE ෳͷ݅ʹϚονʢorʣ
A and B sales > 1000 & profit >10 A
or B sales > 1000 | profit >10 ·ͱΊ
Q&A
Contact Email
[email protected]
Twitter Hashtag #ExploratoryHour ͰπΠʔτʂ Twitter @ExploratoryJp Exploratory
Hour https://bit.ly/30odd9q
None