Upgrade to Pro — share decks privately, control downloads, hide ads and more …

33分4秒ではじめるPy “Baseball” Data入門

33分4秒ではじめるPy “Baseball” Data入門

#PyNyumon #4 2017/2/20 LT登壇資料

すべてのPython初心者&野球好きに贈る

Shinichi Nakagawa

February 20, 2017
Tweet

More Decks by Shinichi Nakagawa

Other Decks in Programming

Transcript

  1. Who am I ? • Shinichi Nakagawa(@shinyorke) • Retty. Inc

    Engineer/Tech Lead • Python/PyData/Baseball Science/Agile • ໺ٿͷਓʮ໺ٿʯʮPythonʯͰݕࡧʂ • Ͳ͜ͷνʔϜͷϑΝϯ͔͸࡯͍ͯͩ͘͠͞
  2. Starting member • PyData #ͱ͸ • Py Baseball Data #ͱ͸

    • 33෼4ඵ(ఔ౓)ͰͰ͖ΔPy “Baseball” Data • ·ͱΊ
  3. ࠓ೔΍Δ͜ͱ • Python 3(3.6.0)͕ಈ͘؀ڥΛ࡞Δ • PyData؀ڥΛ࡞Δ&ಈ͔͢ • WBC೔ຊ୅දࡔຊ༐ਓ(G)ͷ੒੷Λ࣋ͬͯ͘Δ #࡯͠ •

    લॲཧͱՄࢹԽ,ηΠόʔϝτϦΫεΛ΍ͬͯΈΔ • ॴཁ࣌ؒɿ33෼4ඵ #ͳΜͰ΍ࡕਆؔ܎ͳ͍΍Ζ • https://github.com/Shinichi-Nakagawa/pynyumon_baseball/blob/ master/hayato_sakamoto.ipynb
  4. 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 # Ծ૝؀ڥΛ༗ޮԽ͢ΔΑ
  5. PyData؀ڥΛ࡞Δ&ಈ͔͢ $ # Mac OS X(macOS)ͷ৔߹Ͱ͢,ଞͷOS͸্ख͘άά͍ͬͯͩ͘͞. (yakiu) ~ ᐅ pip

    install ipython pandas beautifulsoup4 numpy lxml html5lib jupyter matplotlib seaborn (yakiu) ~ ᐅ jupyter notebook