- #! /usr/bin/env python
- # -*- coding:utf-8 -*-
- fn = "data/player_stats.csv"
- df = pd.read_csv(fn, index_col=0)
- # playerでグループ分け
- players = df.groupby('Player')
- # 各スタッツの平均を出してデータフレームにする
- player_means = players.mean(numeric_only=True).reset_index()
- # 必要なカラムだけ抽出
- player_stats = player_means[['Player', 'height', 'weight', 'aPTS']]
- sort_heights = player_stats.sort_values('height', ascending=False)
- # 高身長ランキング
- print(sort_heights.head(10))
- sort_heights = player_stats.sort_values('height', ascending=True)
- # 低身長ランキング
- print(sort_heights.head(10))
NBA高身長ランキング
Player height weight aPTS
0 Gheorghe Muresan 231.0 137.0 7.366667
1 Manute Bol 231.0 90.0 1.984615
2 Shawn Bradley 229.0 106.0 9.068750
3 Yao Ming 229.0 140.0 18.562500
4 P.J. Brown 229.0 106.0 8.746667
5 Peter John 226.0 117.0 1.800000
6 Slavko Vranes 226.0 124.0 0.000000
7 Chuck Nevitt 226.0 98.0 1.809091
8 Sim Bhullar 226.0 163.0 0.700000
9 Pavel Podkolzin 226.0 117.0 1.600000
NBA低身長ランキング
Player height weight aPTS
0 Muggsy Bogues 160.0 61.0 6.412500
1 Earl Boykins 165.0 61.0 7.821053
2 Spud Webb 168.0 60.0 9.092857
3 Greg Grant 170.0 63.0 2.481818
4 Keith Jennings 170.0 72.0 7.233333
5 Charlie Criss 173.0 74.0 7.200000
6 Yuta Tabuse 175.0 74.0 1.800000
7 Nate Robinson 175.0 81.0 8.676471
8 Kay Felder 175.0 79.0 4.000000
9 Calvin Murphy 175.0 74.0 14.925000
上はゲオルゲ・ムレシャン選手の231cmと高く、下はマグジー・ボーグス選手の160cmと身長差が凄いですね。
231cmのマヌート・ボル選手と160cmのマグジー・ボーグス選手の比較写真は多く出回っています。
高身長が有利と言われるバスケットボールで160cmでも活躍したマグジー・ボーグス選手の運動能力に驚かされます。
0 件のコメント:
コメントを投稿