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
ゆるいPython会
Search
Aruneko
November 09, 2017
Technology
0
270
ゆるいPython会
2017/11/09に学内で開催したゆる(くな)いPython会の資料です
Aruneko
November 09, 2017
Tweet
Share
More Decks by Aruneko
See All by Aruneko
RedmineをDockerに載せてみた
aruneko
1
2.4k
NFCとしゃべってみよう
aruneko
0
190
Haskell入門ハンズオン
aruneko
1
1.7k
北海道における学生ITコミュニティの紹介
aruneko
0
240
ゼロからわかるポインター
aruneko
0
990
Dockerでドカドカ on FuraIT #36
aruneko
1
950
Other Decks in Technology
See All in Technology
All About Sansan – for New Global Engineers
sansan33
PRO
1
1.3k
Context Engineeringが企業で不可欠になる理由
hirosatogamo
PRO
3
500
顧客との商談議事録をみんなで読んで顧客解像度を上げよう
shibayu36
0
190
Contract One Engineering Unit 紹介資料
sansan33
PRO
0
13k
AI駆動PjMの理想像 と現在地 -実践例を添えて-
masahiro_okamura
1
110
システムのアラート調査をサポートするAI Agentの紹介/Introduction to an AI Agent for System Alert Investigation
taddy_919
2
2.1k
OCI Database Management サービス詳細
oracle4engineer
PRO
1
7.4k
2人で作ったAIダッシュボードが、開発組織の次の一手を照らした話― Cursor × SpecKit × 可視化の実践 ― Qiita AI Summit
noalisaai
1
370
Deno・Bunの標準機能やElysiaJSを使ったWebSocketサーバー実装 / ラーメン屋を貸し切ってLT会! IoTLT 2026新年会
you
PRO
0
300
なぜ今、コスト最適化(倹約)が必要なのか? ~AWSでのコスト最適化の進め方「目的編」~
htan
1
110
~Everything as Codeを諦めない~ 後からCDK
mu7889yoon
3
300
CDK対応したAWS DevOps Agentを試そう_20260201
masakiokuda
1
220
Featured
See All Featured
RailsConf & Balkan Ruby 2019: The Past, Present, and Future of Rails at GitHub
eileencodes
141
34k
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
1
440
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
64
Making the Leap to Tech Lead
cromwellryan
135
9.7k
Ten Tips & Tricks for a 🌱 transition
stuffmc
0
65
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.6k
Building Adaptive Systems
keathley
44
2.9k
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
270
Practical Orchestrator
shlominoach
191
11k
Efficient Content Optimization with Google Search Console & Apps Script
katarinadahlin
PRO
0
310
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
62
How to train your dragon (web standard)
notwaldorf
97
6.5k
Transcript
ΏΔ͘ͳ͍1ZUIPOձ *UFSBCMF(FOFSBUPS-BNCEB !BSVOFLP
ࠓͷ༰ w *UFSBCMF(FOFSBUPS w -BNCEBࣜ
αϯϓϧίʔυ w IUUQTHJUBSVOFLPOFUBSVOFLPSPVHI@QZUIPO
*UFSBCMF w *UFSBCMFͬͯʁ w ܁Γฦ͠ॲཧ͕Ͱ͖Δͷ w MJTUUVQMFEJDUFUD w 1ZUIPOʹ͓͍ͯɺ*UFSBUPSͱҧ͏Α w
*UFSBUPSJUFS Λͬͯ*UFSBCMFͳͷ͔Βੜͯ͠ ΛOFYU ͰݸͣͭऔΓग़ͭ͢ w શ෦ు͖ग़ͨ͠ޙʹOFYU ΛݺͿͱྫ֎Ͱམͪ·͢
(FOFSBUPS w (FOFSBUPSͬͯʁ w *UFSBUPSͷҰछ w Λੜ͢ΔϧʔϧΛ͍࣋ͬͯͯɺݺΕΔʹॱ൪ʹు͖ग़ͭ͢ w ࠷ޙ·Ͱు͖ग़ͨ͠ޙʹ͏ҰճݺΜͰམͪ͠ͳ͍͚ͲԿు͔ͳ͍Α w
ཁ͢ΔʹԆධՁ w MJTUͳͲσʔλ͕શ෦ϝϞϦʹͬͯ͠·͏ͷͰɺ ͕ଟ͍ͱ͖(FOFSBUPSͷํ͕লϝϞϦ w ͍͔ͨͩ͠Ͳ͏͔ผ
(FOFSBUPSΛ࡞ͬͯΈΔ def gen_odd_numbers(min: int, max: int) -> [int]: for n
in range(min, max): yield 2 * n + 1 nums = gen_odd_numbers(0, 100) for n in nums: print(n)
࿅श w 'J[[#V[[Λు͖ग़͢δΣωϨʔλΛ࡞ͬͯΈΑ͏ʂ w 'J[[#V[[ͱɺҎ্ͷྻʹରͯ͠ w ͷഒ'J[[ w ͷഒ#V[[ w
ͷഒ'J[[#V[[ w ͦΕҎ֎ࣗͷ w Λग़ྗ͢ΔͰ͢
-BNCEBࣜ w ͍͍ͪͪؔΛ࡞Δ·Ͱͳ͍ͱ͖ʹ͏ؔϦςϥϧ w ϦςϥϧͬͯͷมʹೖͰ͖ΔͷࣄͶ w ؔΛҾʹऔΔؔʹ͏ͱΑ͛͞ w ͜͏͍͏ؔΛߴ֊ؔ )JHIFS0SEFS'VODUJPO
ͬͯݺͿΑ
1ZUIPOͷߴ֊ؔ w *UFSBCMFͳΦϒδΣΫτΛҰׅͰૢ࡞͢Δؔ w NBQ GVOD JUFS w pMUFS
GVOD JUFS w GVODUPPMTSFEVDF GVOD JUFS w ҙॱͰͷιʔτ w TPSUFE JUFS LFZLFZ@GVODUJPO w άϧʔϓ͚ w JUFSUPPMTHSPVQCZ JUFS LFZLFZ@GVODUJPO w ͍ͭ͜ΒͷฦΓશ෦(FOFSBUPSͳͷͰऔѻҙ w Ҿͷॱ൪ʹҰ؏ੑ͕ͳ͍ͷಥͬࠐΜͰ͍͚ͳ͍
ͬͯΈΑ͏ import urllib.request iris_url = 'https://raw.githubusercontent.com/uiuc-cse/data-fa14/gh-pages/data/iris.csv' with urllib.request.urlopen(iris_url) as res:
splitted_response = res.read().split() decoded = map(lambda l: l.decode('UTF-8'), splitted_response) iris_csv = list(map(lambda l: l.split(','), decoded)) header = iris_csv[0] iris_data = iris_csv[1:] iris = map(lambda i: { header[4]: i[4], header[0]: float(i[0]), header[1]: float(i[1]), header[2]: float(i[2]), header[3]: float(i[3]) }, iris_data ) for l in sorted(iris, key=lambda i: i['sepal_width']): print(l)
࿅श w JSJTQZΛվ͠Α͏ w ଞͷͰιʔτͯ͠ΈΑ͏ w SFEVDFΛͬͯͭͷ TFQBMͱQFUBMͷXJEUIͱMFOHUI ͷ ฏۉΛͦΕͧΕٻΊͯΈΑ͏
TVNറΓ w ࠓՖͷछྨ͝ͱʹಉ͡ࣄΛͬͯΈΑ͏ HSPVQCZ