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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
230
ゼロからわかるポインター
aruneko
0
990
Dockerでドカドカ on FuraIT #36
aruneko
1
950
Other Decks in Technology
See All in Technology
あたらしい上流工程の形。 0日導入からはじめるAI駆動PM
kumaiu
5
720
開発メンバーが語るFindy Conferenceの裏側とこれから
sontixyou
2
530
プロダクト成長を支える開発基盤とスケールに伴う課題
yuu26
3
980
セキュリティ はじめの一歩
nikinusu
0
1.4k
15 years with Rails and DDD (AI Edition)
andrzejkrzywda
0
160
Webhook best practices for rock solid and resilient deployments
glaforge
1
190
2026年はチャンキングを極める!
shibuiwilliam
8
1.9k
クレジットカード決済基盤を支えるSRE - 厳格な監査とSRE運用の両立 (SRE Kaigi 2026)
capytan
6
1.9k
usermode linux without MMU - fosdem2026 kernel devroom
thehajime
0
200
AI時代、1年目エンジニアの悩み
jin4
1
150
GCASアップデート(202510-202601)
techniczna
0
240
MySQLのJSON機能の活用術
ikomachi226
0
140
Featured
See All Featured
AI: The stuff that nobody shows you
jnunemaker
PRO
2
230
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3.3k
How STYLIGHT went responsive
nonsquared
100
6k
Odyssey Design
rkendrick25
PRO
1
480
How to make the Groovebox
asonas
2
1.9k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
0
250
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Designing for humans not robots
tammielis
254
26k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
290
Designing for Performance
lara
610
70k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
230
Bash Introduction
62gerente
615
210k
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