Icon

JKISeason3-11

Olympic Trivia

Description: The 2024 Summer Olympics start this week: are you ready for some on-theme trivia? Here are three questions to test your knowledge:

1. Which country has the highest average number of medals (gold, silver, and bronze combined) per athlete, across all Summer Olympics?

2. Which sport made its debut at the Rio 2016 Olympics?

3. Who holds the title of the oldest gold medalist of all time?

If you're not sure about the answers, don't sweat it: we've got a handy dataset that covers the entire history of the Games for you. Before you know it, you'll be standing on the virtual podium as the trivia champion, ready to take home the gold!

説明2024年夏季オリンピックが今週開幕します。テーマに沿ったトリビアの準備はできていますか? あなたの知識を試す3つの質問です:1. 夏季オリンピックの全大会を通じて、選手1人あたりの平均メダル数(金、銀、銅の合計)が最も多い国は? 2. リオ2016オリンピックでデビューした競技は? 3. 史上最年長の金メダリストは誰でしょう? もし答えが分からなくても、ご心配なく。大会の全歴史を網羅した便利なデータセットをご用意しました。 いつの間にか、あなたはトリビアのチャンピオンとしてバーチャル表彰台に立ち、金メダルを手にする準備ができていることでしょう!

1.Which country has the highest average number of medals (gold, silver, and bronze combined) per athlete, across all Summer Olympics?

2. Which sport made its debut at the Rio 2016 Olympics?

3. Who holds the title of the oldest gold medalist of all time?

方針

各回答毎に分けて処理を行う。

  1. region別にメダル総数と固有名をカウントして一人あたりのメダル数を算出後、top k で抽出

  2. 2016年とそれ以外でグループ化してouter join

  3. 2要素でフィルタリングをしてtop k で抽出


athlete_events.csv読み込み
CSV Reader
medal->regionでunpivot
Unpivot
メダル非取得を除外
Row Filter (deprecated)
region事にメダル総数をカウント
GroupBy
一人あたりのメダル数を算出
Math Formula
年齢が一番高い方を抽出
Top k Row Filter
region事に固有名をカウント
GroupBy
金メダリストを抽出
Row Filter (Labs)
列の並べ替え
Column Resorter
競技のリストを作る
GroupBy
region 欠損値の補完
Missing Value
競技のリストを作る
GroupBy
いらない列を消す
Column Filter
合わせる
Value Lookup
noc_regions.csv読み込み
CSV Reader
一番数値が高いregionを抽出
Top k Row Filter
合わせる
Value Lookup
回答まとめ
夏だけ抽出
Row Filter
2016年とそれ以外で分ける
Row Splitter
いらない列を消す
Column Filter
right outer join
Joiner

Nodes

Extensions

Links