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
Python始めて半年で感じたこと/I’ve recently started to lear...
Search
banquet.kuma
March 15, 2019
Programming
300
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Python始めて半年で感じたこと/I’ve recently started to learn Python.
banquet.kuma
March 15, 2019
More Decks by banquet.kuma
See All by banquet.kuma
SaaS is dead. は本当か?
dar_kuma_san
0
48
学習への生成AI活用:「毒」にするか「薬」にするか? - エビデンスと実践知に基づく活用戦略
dar_kuma_san
1
92
転職時代の退職金戦略
dar_kuma_san
0
56
AI新時代の富の源泉
dar_kuma_san
0
53
AI時代のテック投資戦略 - 中島聡氏のインサイトに基づく「富の源泉」
dar_kuma_san
0
63
Amazon Q Developer CLIをClaude Codeから使うためのベストプラクティスを考えてみた
dar_kuma_san
0
980
彼女を励ますために、Azure OpenAI Serviceを使って、kmakici LINE bot を作った
dar_kuma_san
0
210
面倒なことは、 Azure OpenAI Service× Power Automateにやらせよう!
dar_kuma_san
0
350
データで振り返るデータラーニングギルド【基礎集計の部】
dar_kuma_san
0
2.8k
Other Decks in Programming
See All in Programming
iOS 27でニュースアプリはどう変わる!? 〜日経電子版の新機能対応と、開発事例から〜
lynnswap
7
13k
Agents on Rails - Rails at Scale 2026
irinanazarova
0
280
MVNOの申込からeSIM開通までをiOSアプリでつなぐ- 本人確認・MNP・通信事業者基盤をまたぐ実装
satotakeshi
0
500
thread_parallel_with_free-threaded_Python_and_NumPy.pdf
riku_sakamoto
0
360
JRuby: Past, Present, and Future
headius
0
210
Starting & Sustaining Code-Based E2E Testing for Non-Coding QA Teams( #jasstniigata )
teyamagu
PRO
1
660
AWS DevOps Agentで インシデント対応をAIに任せたい
honmarkhunt
7
3.3k
一人だけ、Kiroが静止する日
hideg
0
130
JPUG勉強会 OSSデータベースの内部構造を理解しよう(第2回)
oga5
0
280
Java 27新機能 / Java 27 new features
kishida
2
180
AI Agent時代のリアーキテクチャ戦略と実践
hokaccha
9
5.1k
マイコン向けの軽量Ruby「PicoRuby」で各種デバイスを制御するネイティブアプリの実現手法
bash0c7
0
460
Featured
See All Featured
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.8k
Speed Design
sergeychernyshev
33
2.1k
Are puppies a ranking factor?
jonoalderson
2
4k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.3k
How to make the Groovebox
asonas
2
2.5k
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
390
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.6k
Automating Front-end Workflow
addyosmani
1369
210k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
480
From π to Pie charts
rasagy
1
380
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.7k
Transcript
Justfreeslide.com 1 Python࢝ΊͯͰײͨ͜͡ͱ ɾ࢝Ί͖͔͚ͨͬ ɾ͜͜·Ͱͷֶशํ๏ ɾAltair৮ͬͯΈ·ͨ͠ ɾ·ͱΊ
Justfreeslide.com 2 ۽ాɹᠳ(Kumada Sho) ɾಋମϝʔΧʔΤϯδχΞ ɾژࡏྺʹ8Χ݄ ɾPythonྺʢ㲈ϓϩάϥϛϯάྺʣ ɾΜͳΓPythonӡӦϝϯόʔ ɹ4ճͷࢀՃɺԿͬͯ·ͤΜɻɻ
Justfreeslide.com 3 Python࢝Ί͖͔͚ͨͬ झຯͱݴ͑ं͕ͩͬͨɺ ͔݁ࠗͯ͠Β࿔Γʹ͘͘ͳͬͨɻɻ ৽ฉͰAIͱ͔IoTͱ͍͏ϫʔυ͕ ग़ͯ͜ͳ͍ͳ͍ͷͰɺલ͔Β ϓϩάϥϛϯάؾʹͳ͍ͬͯͨɻɻ Pythonͱ͍͏ݴޠͰͰ͖ΔΒ͍͠ɺ ͬͯΈΑ͏ʂ
γϟίλϯπϥΠνɺ ECUνϡʔϯɺҾͬுΓλΠϠɺ ग़໘ܭࢉɺϝογϡԽɺϘϯϐϯऔΓ͚ Let’s DIY !
Justfreeslide.com 4 ࣄͰ͑ͨΒྑ͍ͳʔʢকདྷతʹʣ ఔ͔ΒಘΒΕΔσʔλ PythonͰՄࢹԽ (ΠϯλϥΫςΟϒʹ) ෆྑϞʔυͱͷ૬ؔ ݪҼڀ໌ɺରࡦ·Ͱͷظؒॖʂ ૣ͘ؼΓ͍ͨɻɻ ෆྑ͕ग़ΔͱݪҼಛఆͷ࡞ۀΛظؒͰΔඞཁ͕͋ΓɺޮԽ͍ͨ͠ʂ
ࠓ·Ͱؾ ͔ͳ͔ͬͨ
Justfreeslide.com 5 ͜͜·Ͱͷֶशํ๏(2018/10ʙ) ɾڥߏங ɾPythonͷجຊจ๏ ɾGitHubͷ͍ํɹetc. ɹશ͘ͷॳ৺ऀʹ༏͍͠ ࣸܦ2प ʮಠֶϓϩάϥϚʔʯʹ Ωϟϯϖʔϯίʔυ͕ࡌ͍ͬͯͨ
ແྉମݧ 3ؒ ·ͣʮಠֶϓϩάϥϚʔʯಡΜͰΈΔ͜ͱʹ
Justfreeslide.com 6 ͜͜ΒΜͰɺΜͳΓPython#12ʹࢀՃ ɾPythonͷجૅ ɾExcelγʔτͷऔΓѻ͍ etc. ɹ࡞ۀޮԽʹ͑ͦ͏ͳωλ͋Γ ࣸܦ ్த·Ͱ ɾNumpyɺpandas
ɾσʔλϥϯάϦϯά ࣸܦ ్த·Ͱ ʢࠓ͜͜ʣ
Justfreeslide.com 7 ͦͷଞ ɾճ͕ؼͬͯ͘Δ·Ͱ͕ૣ͍ ɾͳํ͕ଟ͍ άάͬͯᆐ͕໌ ͔ͳ͚Ε ࣭
Justfreeslide.com 8 ࣸܦʹ͕͔͔࣌ؒΓա͗Δ͜ͱʹؾ͘ɾɾ ࠳ં͢Δ͜ͱؒҧ͍ͳ͠ʂ ͱΓ͋͑ͣɺԿ͔࡞Γ࢝Ίͯɺ٧·ͬͨΒɺ ʮάάΔ → ڭՊॻͰ֬ೝʯͱ͍͏Γํʹมߋ
Justfreeslide.com 9 ࡞͍ͨ͠ͷͷΠϝʔδ ɾՄࢹԽΛ༻͍ͨWebΞϓϦ ɾࡐσΠζχʔϥϯυͷͪ࣌ؒ ɹ εϥΠμʔͰ݄࣌Λ߹ΘͤΔͱ աڈͷ͕͔ͪ࣌ؒΔ →ۭ͍ͯΔΞτϥΫγϣϯ͔Β㕩Γ͍ͨ datetime
Justfreeslide.com 10 σʔλݩ https://touringplans.com/blog/2018/06/25/disney-world-wait-times-available-for-data-science-and-machine-learning/ σΟζχʔϫʔϧυ ͷ͕ͪ࣌ؒcsv.ͰೖखՄೳ
Justfreeslide.com 11 ՄࢹԽπʔϧʢAltairʣ ɾVega-Lite JSON༷͔Β PythonίʔυΛੜ ɾυΩϡϝϯτ͕ॆ࣮ ɹྫ͕๛ ɾԼهyoutubeͰͷղઆ͕ ɹΘ͔Γқ͍
Jake VanderPlas - Exploratory Data Visualization with Vega, Vega-Lite, and Altair - PyCon2018 https://www.youtube.com/watch?v=ms29ZPUKxbU
Justfreeslide.com 12 औֻ͔ͬΓ͍͢ ɹɾσʔλ ɹɾπʔϧ Λͬͯɺ୯७ͳάϥϑ͔Β࡞ͬͯΈΔ͜ͱʹ ͱΓ͋͑ͣɺ खΛಈ͔ͤΔ͜ͱ͔Β࢝ΊΔ͜ͱ͕େࣄʂʂ
Justfreeslide.com 13 import altair as alt import pandas as pd
#σʔλΛpandasͰೖΕ·ͨ͠ alt.renderers.enable(‘notebook') #jupyter notebookͰ࣮ߦ͢Δ߹ʹඞཁͳढจ alt.data_transformers.enable(‘default',max_rows=None) #5000ߦҎ্ಡΈࠐΉࡍʹඞཁ ͪ࣌ؒΛ࣌ܥྻʹϓϩοτ͢Δ
Justfreeslide.com 14 term_start="2018-07"ɹ #ελʔτ݄ term_end="2018-12"ɹɹ #ऴ݄ྃ
Justfreeslide.com 15 sp=alt.Chart(splash_mountain[term_start:term_end], title="Disney World Wait Time 2018(Actual)") .mark_point(filled=True) .encode(
alt.X("datetime",type="temporal"),ɹɹɹ #࣌ؒσʔλ alt.Y("attractions",type="nominal"),ɹɹɹ #໊σʔλ size="wait_time(actual):Q",ɹɹɹɹɹɹɹ#ྔతσʔλ color=“wait_time(actual):Q") #ྔతσʔλ .properties(width=650,height=400) େผ͢ΔͱɺᶃChart , ᶄmark , ᶅencode ,ᶆpropertiesɹ ͔Β͍ͬͯͯͦΕͧΕʹಛʢϚʔΫछྨɺX࣠ɺY࣠ɺσʔλछྨͳͲʣ ΛೖΕΔ
Justfreeslide.com 16 sp
Justfreeslide.com 17 sp+se+di+ex+fl+ki+pi+ro+so+sp2+to+al+na “ʴ”Ͱ1ͭͷάϥϑʹϚʔδ͞ΕΔ
Justfreeslide.com 18 ࣌ܥྻͷͪ࣌ؒάϥϑΛ࡞Δ εϥΠμʔͰಈ͔͢ Ϛοϓ্ʹϓϩοτ͢Δ WebʹΞοϓ͢Δ σʔλ͕ߋ৽͞ΕͨΒࣗಈͰಡΈࠐΉΑ͏ʹ Ͱ͖Δ͔͔Βͳ͍͚Ͳɺ͠Β֨͘ಆ͠·͢ ଟ৭ʑଥڠ͠·͢w
Justfreeslide.com 19 ·ͱΊʢ͜͜·ͰͬͯΈͯͷॴײʣ ɹ࠷ݶͷࣸܦΛͨ͠Βɺ ɹͱΓ͋͑ͣԿ͔࡞Γ࢝ΊΔʂ ɹ্ख͍͔͘ͳͯ͘ಘΔͷ͋Δͷ ɹͰؾָʹʢ݁ߏେࣄʣ ɹษڧձʹࢀՃͯ͠ϞνϕʔγϣϯUPʂ