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
February 20, 2017
Programming
2
330
33分4秒ではじめるPy “Baseball” Data入門
#PyNyumon #4 2017/2/20 LT登壇資料
すべてのPython初心者&野球好きに贈る
Shinichi Nakagawa
February 20, 2017
Tweet
Share
More Decks by Shinichi Nakagawa
See All by Shinichi Nakagawa
実践Dash - 手を抜きながら本気で作るデータApplicationの基本と応用 / Dash for Python and Baseball
shinyorke
2
1.1k
Terraform, GitHub Actions, Cloud Buildでデータ基盤をProvisioningする / Data Platform provisioning for Google Cloud and Terraform
shinyorke
2
2.8k
Cloud RunとCloud PubSubでサーバレスなデータ基盤2024 with Terraform / Cloud Run and PubSub with Terraform
shinyorke
10
2.8k
自らを強いエンジニアにするための3つの習慣 / I need to be myself, I can't be no one else
shinyorke
77
58k
阪神タイガース優勝のひみつ - Pythonでシュッと調べた件 / SABRmetrics for Python
shinyorke
1
1.3k
Pythonとクラウドと野球の推し活. / Baseball Data Platform for Python and Google Cloud
shinyorke
2
2.7k
月額コーヒー3.34杯分のコストでオオタニサンの活躍を見守るデータ基盤のはなし / Pyhack Con
shinyorke
2
460
俺のDXを実現するためのサーバレスなデータ基盤開発と運用 / Serverless Data Platform and Baseball
shinyorke
5
11k
機械学習エンジニアが目指すキャリアパスとその実話 / My Journey to Become a ML Engineer
shinyorke
9
16k
Other Decks in Programming
See All in Programming
Hotwire or React? ~アフタートーク・本編に含めなかった話~ / Hotwire or React? after talk
harunatsujita
1
120
シールドクラスをはじめよう / Getting Started with Sealed Classes
mackey0225
4
640
Webの技術スタックで マルチプラットフォームアプリ開発を可能にするElixirDesktopの紹介
thehaigo
2
1k
Amazon Qを使ってIaCを触ろう!
maruto
0
400
ふかぼれ!CSSセレクターモジュール / Fukabore! CSS Selectors Module
petamoriken
0
150
Creating a Free Video Ad Network on the Edge
mizoguchicoji
0
120
Duckdb-Wasmでローカルダッシュボードを作ってみた
nkforwork
0
120
よくできたテンプレート言語として TypeScript + JSX を利用する試み / Using TypeScript + JSX outside of Web Frontend #TSKaigiKansai
izumin5210
6
1.7k
ActiveSupport::Notifications supporting instrumentation of Rails apps with OpenTelemetry
ymtdzzz
1
230
Jakarta EE meets AI
ivargrimstad
0
540
.NET のための通信フレームワーク MagicOnion 入門 / Introduction to MagicOnion
mayuki
1
1.5k
「今のプロジェクトいろいろ大変なんですよ、app/services とかもあって……」/After Kaigi on Rails 2024 LT Night
junk0612
5
2.1k
Featured
See All Featured
Ruby is Unlike a Banana
tanoku
97
11k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
93
16k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
0
89
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
16
2.1k
Building a Scalable Design System with Sketch
lauravandoore
459
33k
Mobile First: as difficult as doing things right
swwweet
222
8.9k
Art, The Web, and Tiny UX
lynnandtonic
297
20k
The Cost Of JavaScript in 2023
addyosmani
45
6.7k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Building Your Own Lightsaber
phodgson
103
6.1k
Practical Orchestrator
shlominoach
186
10k
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)