Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
PowerQueryでデータサイエンス100本ノック_Q-043/PowerQuery_Q-043
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
lilacs2039
May 08, 2021
Programming
140
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
PowerQueryでデータサイエンス100本ノック_Q-043/PowerQuery_Q-043
lilacs2039
May 08, 2021
Other Decks in Programming
See All in Programming
Vue Fes Japan の “作る側”に関わってみて
naokihaba
0
160
AWSに止められる覚悟してますか?
morizo_1984
2
530
設計次第でAIコードの読む量は減らせる / designing-for-code-reading
minodriven
35
17k
最近”作らせてる” ローカルAIアプリの話
akit37
0
470
残高管理から台帳サービスへの進化
artoy
1
200
JIS keyboard support in Omarchy
lef237
0
110
Rでドレミ/Do-Re-Mi_with_R
florets1
0
130
KiroのSpecで「五目並べ」を作ってみる
satoshi256kbyte
1
380
3回つくってわかった、 定期実行ジョブ基盤の本質情報
takai
0
450
ChromeでローカルLLM
ryu1013
0
140
SalesForceを内製化!? ~ HR事業を支える顧客管理基盤のインフラを大公開 ~
oku053
0
180
ソニーのクラウド共通基盤の変遷とAI時代の開発スタイルに合わせた進化 / The Journey of Sony’s Common Cloud Platform and Its Evolution for AI-Native Development
kenjiyoneyama
0
270
Featured
See All Featured
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
570
Practical Orchestrator
shlominoach
192
12k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.2k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
162
16k
New Earth Scene 8
popppiees
4
2.7k
Building an army of robots
kneath
307
47k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.7k
The World Runs on Bad Software
bkeepers
PRO
72
12k
Building AI with AI
inesmontani
PRO
1
1.3k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.8k
The browser strikes back
jonoalderson
0
1.8k
What does AI have to do with Human Rights?
axbom
PRO
1
2.5k
Transcript
PowerQuery / Excelで データサイエンス100本ノック Q-043 作成者 : lilacs
Q-043 レシート明細テーブル(receipt)と顧客テーブル(customer)を結合し、性別(gender)と年代(age から計算)ごとに売上金額(amount)を合計した売上サマリテーブル(sales_summary)を作成せよ。 性別は0が男性、1が女性、9が不明を表すものとする。 ただし、項目構成は年代、女性の売上金額、男性の売上金額、性別不明の売上金額の4項目とすること (縦に年代、横に性別のクロス集計)。また、年代は10歳ごとの階級とすること。
マージしてクエリ作成
1.customerとreceiptをマージ
1.customerとreceiptをマージ
1.customerとreceiptをマージ
1.customerとreceiptをマージ
1.customerとreceiptをマージ
2.クエリ名を変更して移動
2.クエリ名を変更して移動
3.不要な列を削除
era, gender列を作成
4.age列からera列を作成
4.age列からera列を作成
4.age列からera列を作成
4.age列からera列を作成
4.age列からera列を作成
5.gender_cd列からgender列を作成
5.gender_cd列からgender列を作成
5.gender_cd列からgender列を作成
5.gender_cd列からgender列を作成
amount列を合計する
6.receipt列からamount列を展開
7.amount列を合計
7.amount列を合計
7.amount列を合計
7.amount列を合計
横持ちにする
8.gender列を横持ちにする(ピボット)
8.gender列を横持ちにする(ピボット)
8.gender列を横持ちにする(ピボット)
8.gender列を横持ちにする(ピボット)
残りを完成させる
9.列の並び順を修正
10.nullを0で置き換え
10.nullを0で置き換え
11.完成、エクセルシートに読み込み
11.完成、エクセルシートに読み込み
11.完成、エクセルシートに読み込み