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

Beginning PyData with Django and Jupyter

kuma127
September 17, 2019

Beginning PyData with Django and Jupyter

PyCon JP 2019 9/17 16:15~

kuma127

September 17, 2019
Tweet

More Decks by kuma127

Other Decks in Programming

Transcript

  1. Djangoͷ؀ڥߏங ✤ جຊతʹ͸ެࣜαΠτ௨Γͷߏஙํ๏ͰOK ✤ $ pip install django ✤ $

    conda install django (Anacondaͷ৔߹) ✤ ※͍ͣΕͷ৔߹΋Ծ૝؀ڥΛཱͯͯΠϯετʔϧ͢Δ ͷ͕Φεεϝ
  2. ΞϓϦͷ࡞੒ ✤ JupyterΛಋೖ͢ΔͨΊʹɺͱΓ͋͑ͣΞϓϦΛ࡞੒
 $ django-admin startproject test_project
 $ cd test_project


    $ python manage.py startapp test_app ✤ ʮtest_projectʯͱ͍͏ϓϩδΣΫτʹʮtest_appʯͱ ͍͏ΞϓϦΛ࡞੒ ✤ ※ৄ͘͠͸ެࣜυΩϡϝϯτࢀর
 (https://docs.djangoproject.com/ja/2.2/)
  3. ಋೖ͸ͱͬͯ΋؆୯ ✤ django-extensions ΛΠϯετʔϧ͢Δ͚ͩʂ ✤ pipͰΠϯετʔϧ͢Δ৔߹͸ 
 $ pip install

    django-extensions ✤ setting.pyͷINSTALLED_APPSʹҎԼΛ௥Ճ
 ‘django_extensions' ✤ ࢀߟɿhttps://github.com/django-extensions/django-extensions
  4. Djangoʹ͓͍ͯͷΦεεϝ ✤ Django REST Framework
 Web API Λߏங͢ΔͨΊͷπʔϧ
 ໘౗ͳAPIͷઃఆ౳͕؆ུԽͰ͖Δ ✤

    Django-filter
 ↑ͷDRFͱ૊Έ߹ΘͤͯݕࡧػೳΛ௥ՃͰ͖Δ ✤ Django-pandas
 ϞσϧͷσʔλΛσʔλϑϨʔϜܗࣜʹม׵Ͱ͖Δ
 ͦͯ͠σʔλͷՄࢹԽɾՃ޻ʹར༻Ͱ͖Δ