Python (α )
Analyzing Baseball Data With Python
Shinichi Nakagawa@shinyorke(visasQ inc.)
Who am I?
• Shinichi Nakagawa(@shinyorke) ※
• Pythonista/Agile & Scrum & Kansan coach/Baseball Analyst
• visasQ( ) Python Engineer/Scrum Master

※ ( )
• /Oakland Athletics .
• .
Starting Member
• MLB Hack
• MLB Python Hack 

pitchpx Jupyter + pandas + matplotlib
•
• PyCon JP 2016 CfP
Hack! Python
PyCon JP 2015
http://www.slideshare.net/shinyorke/hackpython-pyconjp
Hack! Python
PyCon JP 2015
http://www.slideshare.net/shinyorke/hackpython-pyconjp
Hack! Python
PyCon JP 2015
http://www.slideshare.net/shinyorke/hackpython-pyconjp
Hack!
• etc…
•
• 

( )
• …
•
MLB at BAT MLB
• MLB
• PC Apple TV
• MLB.TV
•
Analyzing Baseball Data with R
• MLB Retrosheet ,

MLB at BAT
• R
• pitchRx R 

at BAT &
“ pitchRx 

R 

at BAT & ”
Python
※R (ry
pitchpx - Getting MLB dataset
• MLB at BAT &
CSV Python .
• pitchRx(R) .
• .
• Python 3.3.x
• PyPI
$ # Python 3.3 ( Python 3.4 )
$ pip install pitchpx
$ # 2015/8/1-8/12
$ pitchpx -s 20150801 -e 20150812 -o .
• - (2015/8/12) 

• etc…
• pitchpx pandas
matplotlib(&seaborn) &
• Jupyter notebook(Python 3.5.1)
… ,
Qiita
(SEA) Python
http://qiita.com/shinyorke/items/2c2e2c3976fc2d1ed051
???
※
MLB
( )OK
http://gd2.mlb.com/components/copyright.txt
& http://qiita.com/shinyorke/items/566f1b7e7687492a0c7f
(PyCon JP 2016)
Python (ja)
& @a_macbee LT ( ).
https://pycon.jp/2016/ja/proposals/vote/16/
Pythonista
Web(Django), , .
https://www.wantedly.com/projects/56109
.
Shinichi Nakagawa(Twitter/Facebook/visasQ:@shinyorke)

ビックデータとPythonではじめる野球の統計分析(α)