Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
33分4秒ではじめるPy “Baseball” Data入門
Search
Shinichi Nakagawa
PRO
February 20, 2017
Programming
430
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
33分4秒ではじめるPy “Baseball” Data入門
#PyNyumon #4 2017/2/20 LT登壇資料
すべてのPython初心者&野球好きに贈る
Shinichi Nakagawa
PRO
February 20, 2017
More Decks by Shinichi Nakagawa
See All by Shinichi Nakagawa
LLMの出力を"いい感じに"する技術 / Taming LLM Output: AI Agent Design Patterns with FastAPI
shinyorke
PRO
4
2.3k
野球解説AI Agentを開発してみた - 2026/02/27 LayerX社内LT会資料
shinyorke
PRO
0
760
WBCの解説は生成AIにやらせよう - 生成AIで野球解説者AI Agentを実現する / Baseball Commentator AI Agent for Gemini
shinyorke
PRO
1
770
自らを強いエンジニアにするための3つの習慣 2025/ Fitter happier more productive
shinyorke
PRO
0
330
生成AI時代におけるSREの進化とキャリア戦略 / Building an Embedded SRE team and my career
shinyorke
PRO
0
200
生成AIを活用した野球データ分析 - メジャーリーグ編 / Baseball Analytics for Gen AI
shinyorke
PRO
1
6.8k
ゼロから始めるSREの事業貢献 - 生成AI時代のSRE成長戦略と実践 / Starting SRE from Day One
shinyorke
PRO
3
9.9k
AI・LLM事業部のSREとタスクの自動運転
shinyorke
PRO
0
600
実践Dash - 手を抜きながら本気で作るデータApplicationの基本と応用 / Dash for Python and Baseball
shinyorke
PRO
2
5k
Other Decks in Programming
See All in Programming
オーケストレーション記述言語 Katari
yukikurage
0
200
Kotlinの15年とServer-Side Kotlin
n_takehata
1
170
見えないものを探る要求要件定義に必要な基本的思考 / invisible-requirement-thinking
minodriven
15
8.8k
sbt 2.0: takeoff
eed3si9n
0
170
3回つくってわかった、 定期実行ジョブ基盤の本質情報
takai
4
3.2k
個人開発者よ、Honoを使え(おじさんver)
tanahiro2010
2
280
月間100万人のサービス刷新で、 技術選定をHonoに振り切った話
yutobara
8
7k
全ての永続トークンを、生まれる前に消し去りたい!
sylph01
2
1.3k
Seven New Principles of Software Engineering
yegor256
0
320
contenteditable と日本語入力に向き合う
colorful12
0
220
FactoryBotをやめればRSpecは速くなるのか?
yuta_onishi_97
0
1.2k
phperだってパンチカードでコーディングしたい
o0h
PRO
0
460
Featured
See All Featured
Designing for humans not robots
tammielis
254
26k
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
710
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Balancing Empowerment & Direction
lara
6
1.3k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.5k
GraphQLとの向き合い方2022年版
quramy
50
15k
ラッコキーワード サービス紹介資料
rakko
4
5.5M
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2.1k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
510
Leading Effective Engineering Teams in the AI Era
addyosmani
9
2.8k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
960
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)