SlideShare a Scribd company logo
Py “Baseball” Data
( )
MonotaRO TechTalk #4 2016/11/25
Shinichi Nakagawa(Baseball Analyst&Pythonista)
Starting Member
• Who am I?( )
• PyData
• Python
•
Who am I?
• Shinichi Nakagawa(@shinyorke)
• Python , Hack ※ Python
• HR .
• Python/PyData/Agile/Scrum Master
•
• ( ) .
PyCon JP 2016
( )
• Python
•
•
• Itoi… (
• &
PyData
PyData #
“””
PyData
Python Python Library
“””
※@iktakahiro
http://www.slideshare.net/
iktakahiro/pydata-67913897
PyData
• , ,Python 

&( ) .
• , or .
• Excel Python, Deep Learning,
etc… PyData 

PyData ( )
#
,
Web
,
Web
,
Web
,
Web
,
Web
,
Web
#
• (DB )
• = , , ※
• =DB, , ( ) 

= (Google Analytics )
• (= )
• ※
&
( & )
PyData
• Grafana
• Re:dash
• Jupyter
Grafana
• Elastic search, Cloud Watch metrics .
• OSS, .
• BI(Business Intelligence) , .
• .
• http://grafana.org/
• , ( & )
Re:dash
• Web
• RDBMS, KVS, Google Analytics,etc…
• ( ) OSS

AWS(EC2)/GCE/Docker
• Flask(Python) + Angular JS

Mail Slack
•
Re:dash
MLB Retrosheet 

Metrics
Re:dash
Docker
VISASQ TECH BLOG Re:dash Docker for Mac
https://tech.visasq.com/redash-docker/
Jupyter
• &
• Python &
• notebook
• (kernel)
Python
• Google Cloud Datalab
Jupyter ( )
• Jupyter ipykernel jupyter-console notebook ,

• ipykernel , Jupyter IPython
• jupyter-console Jupyter
• notebook tornado(Web ),Jinja2( ) ,

Web .
• notebook Jupyter ( )
Jupyter (Jupyter lab)
PyCon JP 2016 

Jupyter notebook Jupyter lab
PyData
• Re:dash

( ) CVR
• 

Jupyter( )
•
Grafana
.
…!
Py "Baseball" Data入門〜サービス(と野球)を支えるデータ分析基盤 #monotarotech
Py "Baseball" Data入門〜サービス(と野球)を支えるデータ分析基盤 #monotarotech
…
#
( # )
“””
“””
https://ja.wikipedia.org/
wiki/
( )
• , 

• 1970 

, &
• 

( , )
• ( - ) = 5 ( )
•
• ,
• ,
• =
Py "Baseball" Data入門〜サービス(と野球)を支えるデータ分析基盤 #monotarotech
Py "Baseball" Data入門〜サービス(と野球)を支えるデータ分析基盤 #monotarotech
http://www.daily.co.jp/tigers/2016/11/25/0009697275.shtml
•
•
• FA
•
#
• ,
• ( )

→ 

→ 

→FA
•
(2016)
&
• ” ” ,

” ”
• (RC)
(PyData + )
•
• scrapy & CSV
• CSV pandas, seaborn, jupyter &
• ( ) ,
(RC,RC27 )
• ( )
RC(Run Created)
• , ,

• ( , , , )
• ( , , , )
• ( , , , )
• RC = A × B / C

※ Wikipedia &
• RC =
RC
18%(99.8 / 544.8 *100)
※RC (544) (499) ( )
RC
18%(99.8 / 544.8 *100)
※RC (544) (499) ( )
RC
• 18%
•
• ,RC 

=
• RC
RC27
• 9 1
?
• VS , !?
• RC (3 ×9 =27 )
,
RC27
RC27
RC27
???
RC27
!?
RC27 5 6
…
RC27 5 6
…
RC27 5 6
…
RC27
•
•
• ( , OK)
• ( ) ?
• 2015 1 ,

RC/RC27
• (RC/RC27 )
•
( )
•
• ( )

※ DELTA http://1point02.jp/op/index.aspx
Py "Baseball" Data入門〜サービス(と野球)を支えるデータ分析基盤 #monotarotech
Py "Baseball" Data入門〜サービス(と野球)を支えるデータ分析基盤 #monotarotech
( )
http://www.daily.co.jp/tigers/2016/11/25/0009697275.shtml
Py "Baseball" Data入門〜サービス(と野球)を支えるデータ分析基盤 #monotarotech
• ?
• ?
• ( )RC27
RC27
(39) …w
RC27
(39) …w
RC27
(39) …w
RC27
(39) …w
RC27
(39) …w
RC27
•
• ,
• ( 40 ) 

• (30 )
RC27
• (RC27 )
•


( )
• (ry

※ DELTA http://1point02.jp/op/index.aspx
RC27 ( )
1.( )
2.( )
3.( )
4.( )
5.( )
6.( )
7.( )
8.( )
9.( )
(
Py "Baseball" Data入門〜サービス(と野球)を支えるデータ分析基盤 #monotarotech
• 



•
• ...
• …
&
Shinichi Nakagawa(Twitter/Facebook/visasQ:@shinyorke)

More Related Content

Py "Baseball" Data入門〜サービス(と野球)を支えるデータ分析基盤 #monotarotech