Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
33分4秒ではじめるPy “Baseball” Data入門
Search
Shinichi Nakagawa
PRO
February 20, 2017
Programming
2
330
33分4秒ではじめるPy “Baseball” Data入門
#PyNyumon #4 2017/2/20 LT登壇資料
すべてのPython初心者&野球好きに贈る
Shinichi Nakagawa
PRO
February 20, 2017
Tweet
Share
More Decks by Shinichi Nakagawa
See All by Shinichi Nakagawa
実践Dash - 手を抜きながら本気で作るデータApplicationの基本と応用 / Dash for Python and Baseball
shinyorke
PRO
2
1.4k
Terraform, GitHub Actions, Cloud Buildでデータ基盤をProvisioningする / Data Platform provisioning for Google Cloud and Terraform
shinyorke
PRO
2
2.9k
Cloud RunとCloud PubSubでサーバレスなデータ基盤2024 with Terraform / Cloud Run and PubSub with Terraform
shinyorke
PRO
9
2.9k
自らを強いエンジニアにするための3つの習慣 / I need to be myself, I can't be no one else
shinyorke
PRO
77
72k
阪神タイガース優勝のひみつ - Pythonでシュッと調べた件 / SABRmetrics for Python
shinyorke
PRO
1
1.3k
Pythonとクラウドと野球の推し活. / Baseball Data Platform for Python and Google Cloud
shinyorke
PRO
2
2.7k
月額コーヒー3.34杯分のコストでオオタニサンの活躍を見守るデータ基盤のはなし / Pyhack Con
shinyorke
PRO
2
470
俺のDXを実現するためのサーバレスなデータ基盤開発と運用 / Serverless Data Platform and Baseball
shinyorke
PRO
5
11k
機械学習エンジニアが目指すキャリアパスとその実話 / My Journey to Become a ML Engineer
shinyorke
PRO
9
16k
Other Decks in Programming
See All in Programming
tidymodelsによるtidyな生存時間解析 / Japan.R2024
dropout009
1
770
数十万行のプロジェクトを Scala 2から3に完全移行した
xuwei_k
0
270
CQRS+ES の力を使って効果を感じる / Feel the effects of using the power of CQRS+ES
seike460
PRO
0
130
Amazon S3 NYJavaSIG 2024-12-12
sullis
0
100
testcontainers のススメ
sgash708
1
120
talk-with-local-llm-with-web-streams-api
kbaba1001
0
180
Jakarta EE meets AI
ivargrimstad
0
240
命名をリントする
chiroruxx
1
410
Stackless и stackful? Корутины и асинхронность в Go
lamodatech
0
750
ゆるやかにgolangci-lintのルールを強くする / Kyoto.go #56
utgwkk
2
380
急成長期の品質とスピードを両立するフロントエンド技術基盤
soarteclab
0
930
たのしいparse.y
ydah
3
120
Featured
See All Featured
Java REST API Framework Comparison - PWX 2021
mraible
28
8.3k
Bash Introduction
62gerente
608
210k
Mobile First: as difficult as doing things right
swwweet
222
9k
YesSQL, Process and Tooling at Scale
rocio
169
14k
Optimizing for Happiness
mojombo
376
70k
Making the Leap to Tech Lead
cromwellryan
133
9k
Testing 201, or: Great Expectations
jmmastey
40
7.1k
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
29
2.3k
Fontdeck: Realign not Redesign
paulrobertlloyd
82
5.3k
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
132
33k
Building an army of robots
kneath
302
44k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
169
50k
Transcript
334ඵͰ͡ΊΔ Py “Baseball” Dataೖ Shinichi Nakagawa @shinyorke (ٿPythonͷਓ)
Who am I ? • Shinichi Nakagawa(@shinyorke) • Retty. Inc
Engineer/Tech Lead • Python/PyData/Baseball Science/Agile • ٿͷਓʮٿʯʮPythonʯͰݕࡧʂ • Ͳ͜ͷνʔϜͷϑΝϯ͔͍ͯͩ͘͠͞
͜ΕΛॻ͍ͨਓͰ͢(࣮) ॳ৺ऀ͕PythonΛ֮͑ΔҝͷຊͷબͼํΛମܥԽͯ͠Έͨ(2017൛) http://shinyorke.hatenablog.com/entry/2017/01/15/170602
Starting member • PyData #ͱ • Py Baseball Data #ͱ
• 334ඵ(ఔ)ͰͰ͖ΔPy “Baseball” Data • ·ͱΊ
PyData #ͱ
“”” PyDataͱσʔλੳσʔλ׆༻ ʹPythonͳΒͼʹPython Library Λ ར༻͠Α͏ͱ͍͏ਓྨͷӦΈͷ૯শ “”” ※@iktakahiro ͞Μͷ͓ݴ༿ΑΓൈਮ http://www.slideshare.net/
iktakahiro/pydata-67913897
PyDataɹ˞ݸਓతͳղऍͱݟղ • ਓྨ͕ͨ͠,͘͜͠Ε͔Β͢σʔλΛ,Pythonͷ ΤίγεςϜͰੳ&(ϚτϞʹ)׆༻͠Α͏ʂͱ͍͏ӦΈ. • PyDataͷ݁Ռ,Πϊϕʔγϣϯ͕ى͖ͨΓؔΘΔਓୡ͕ ͤʹͳͬͨΒ͍͍ͳ. • ExcelͷΘΓʹPython, ΨνͷػցֶशɾDeep
Learning, ٿσʔλΛָ͍ͬͯ͡͠Ήetc…શ෦PyDataͩΑʂ
Py Baseball Data #ͱ
“”” Py Baseball Dataͱ, ٿ౷ܭֶٴͼ,ͳΜJͳωλ࡞ΓͷͨΊ, PythonͳΒͼʹPython Library Λ ར༻͠Α͏ͱ͍͏, ʮ͖͏ຽ(ٿϑΝϯ)ʯͷӦΈͷ૯শ
“”” ※ࢲ(@shinyorke)͕࡞ͬͨޠ
ࣄྫ ʲॳ৺ऀ͚ʳ334ඵͰ͓΅͑Δٿ౷ܭֶͱPyDataʙཅଲ߯Λఴ͑ͯ http://qiita.com/shinyorke/items/ee58a82ad589f7f4c446
ࠓΔ͜ͱ • Python 3(3.6.0)͕ಈ͘ڥΛ࡞Δ • PyDataڥΛ࡞Δ&ಈ͔͢ • WBCຊදࡔຊ༐ਓ(G)ͷΛ࣋ͬͯ͘Δ #͠ •
લॲཧͱՄࢹԽ,ηΠόʔϝτϦΫεΛͬͯΈΔ • ॴཁ࣌ؒɿ334ඵ #ͳΜͰࡕਆؔͳ͍Ζ • https://github.com/Shinichi-Nakagawa/pynyumon_baseball/blob/ master/hayato_sakamoto.ipynb
Python 3(3.6.0)ڥΛ࡞Δ ~ ᐅ # Mac OS X(macOS)ͷ߹Ͱ͢,ଞͷOS্ख͘άά͍ͬͯͩ͘͞. ~ ᐅ
brew install python3 ~ ᐅ python3 -m venv ~/Document/yakiu # venvͰڥ࡞Δ(PathͲ͜Ͱ) ~ ᐅ source ~/Documents/yakiu/bin/activate # ԾڥΛ༗ޮԽ͢ΔΑ
PyDataڥΛ࡞Δ&ಈ͔͢ $ # Mac OS X(macOS)ͷ߹Ͱ͢,ଞͷOS্ख͘άά͍ͬͯͩ͘͞. (yakiu) ~ ᐅ pip
install ipython pandas beautifulsoup4 numpy lxml html5lib jupyter matplotlib seaborn (yakiu) ~ ᐅ jupyter notebook
ଓ͖ͪ͜ΒͰ(ࢼͯ͠Έͯ) https://github.com/Shinichi-Nakagawa/pynyumon_baseball/ blob/master/hayato_sakamoto.ipynb
·ͱΊ • ͦΒ(PythonDataڥ࡞Γָ͕Ͱ) ͦ͏(ࡔຊ༐ਓϝνϟΫνϟੌ͍ʹ) Αɹ(ܾ·͍ͬͯΔ͡Όͳ͍͔) • ٿ͖ͳΒ,PyDataٿ͔Βೖͬͨ΄͏͕Γ͍͢ͱ ࢥ͍·͢ʂ(ݸਓͷݟղ) • ٿʹݶΒͣ,͖ͳςʔϚɾதͰ͖ΔϞϊͰγϯϓϧʹ
͡ΊΔͷ͕ྑ͍ͱࢥ͏Αʂ #ଃΔݴ༿
ήʔϜηοτʂʂʂ ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠. Shinichi Nakagawa(Twitter/Facebook:@shinyorke)