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

DataFrames and Types with Julia

Kiichi
October 20, 2018

DataFrames and Types with Julia

Presentation at JuliaTokyo #8 https://juliatokyo.connpass.com/event/100780/

Kiichi

October 20, 2018
Tweet

Other Decks in Programming

Transcript

  1. %BUB'SBNFTBOE5ZQFTXJUI+VMJB
    +VMJB5PLZP
    0DUPCFS

    View Slide

  2. !,J@DIJ

    View Slide

  3. %BUB'SBNFT.FUB +VMJB%# 2VFSZWFSTFΛͦΕͧΕ৮ͬͯΈͨr,J@DIJ!#MPH
    IUUQLJDIJKQ Q

    View Slide

  4. %BUB'SBNFTBOE5ZQFTXJUI+VMJB
    +VMJB5PLZP
    0DUPCFS

    View Slide

  5. %BUB'SBNF
    4FQBM-FOHUI 4FQBM8JEUI 1FUBM-FOHUI 1FUBM8JEUI 4QFDJFT
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB

    *SJT

    View Slide

  6. 5XP4VQFSDPVQMFTJO%BUB4DJFODF


    View Slide

  7. 8IP`TOFYU

    View Slide

  8. 5IF$BOEJEBUFT
    %BUB'SBNFT%BUB'SBNFT.FUB
    +VMJB%#
    2VFSZWFSTF 2VFSZKM

    View Slide

  9. %BUB'SBNFT
    %BUB'SBNFT.FUB
    .PTUQPQVMBSUBCVMBSGSBNFXPSLJO+VMJB
    &BTZUPVTFGPSUJEZWFSTFQBOEBTVTFST
    1SPWJEJOHNBDSPTGPSEBUBQSPDFTTJOH

    View Slide

  10. View Slide

  11. View Slide

  12. View Slide

  13. View Slide

  14. View Slide

  15. +VMJB%#
    /PUBEBUBCBTFTFSWFS
    "QBSUPG+VMJB'*/QSPKFDUCZ+VMJB$PNQVUJOH *OD
    *ONFNPSZ PVUPGDPSF BOEEJTUSJCVUFEDPNQVUJOH

    View Slide

  16. View Slide

  17. View Slide

  18. View Slide

  19. 2VFSZWFSTF
    "ONFUBQBDLBHFPGNVMUJQMFQBDLBHFT
    w %BUB7BMVFT
    w *UFSBCMF5BCMFT
    w2VFSZ
    w 7FHB-JUF
    w 'JMF*0
    w &YDFM'JMFT
    w 4UBU'JMFT
    w $47'JMFT
    w 'FBUIFS'JMFT
    w%BUB'SBNFT
    w %BUB7PZBHFS

    View Slide

  20. View Slide

  21. View Slide

  22. 5IF$BOEJEBUFT
    %BUB'SBNFT%BUB'SBNFT.FUB
    +VMJB%#
    2VFSZWFSTF 2VFSZKM

    View Slide

  23. 0, *KVTUXBOUUPFYUSBDU
    b4FQBM-FOHUI`

    View Slide

  24. View Slide

  25. 8IJDIJTUIFCFTU

    View Slide

  26. W W
    %BUB'SBNFT
    %BUB'SBNFT.FUB
    +VMJB%#
    2VFSZWFSTF
    BTPG0DUPCFS

    View Slide

  27. %BUB'SBNFTBOE5ZQFTXJUI+VMJB
    +VMJB5PLZP
    0DUPCFS

    View Slide

  28. 1. A list
    2. With (unique) names
    3. Containing vectors (including lists!)
    4. With equal NROW()
    5. Optional row names best avoided
    — Hadley Wickham at TokyoR
    “What is a data frame?”
    4FQBM-FOHUI 4FQBM8JEUI 1FUBM-FOHUI 1FUBM8JEUI 4QFDJFT
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB

    View Slide

  29. 4FQBM-FOHUI 4FQBM8JEUI 1FUBM-FOHUI 1FUBM8JEUI 4QFDJFT
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB

    *SJT
    6OJRVFOBNFT
    7FDUPST

    View Slide

  30. 4FQBM-FOHUI 4FQBM8JEUI 1FUBM-FOHUI 1FUBM8JEUI 4QFDJFT
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB

    *SJT
    -JTU 7FDUPS\"OZ^

    View Slide

  31. FY%BUB'SBNFT
    4FQBM-FOHUI 4FQBM8JEUI 1FUBM-FOHUI 1FUBM8JEUI 4QFDJFT
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB

    View Slide

  32. FY+VMJB%# *OEFYFE5BCMFT

    4FQBM-FOHUI 4FQBM8JEUI 1FUBM-FOHUI 1FUBM8JEUI 4QFDJFT
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB

    View Slide

  33. %J⒎FSFOUQBDLBHFTDPOTUSVDU
    EJ⒎FSFOUUZQFTPGEBUBGSBNFT

    View Slide

  34. 5BCMFUSBJUTK**UFSBCMF5BCMFTKM
    (FOFSJDUBCVMBSJOUFSGBDF

    View Slide

  35. 5BCMFUSBJUTl5BCMF/BNFE5VQMFz

    View Slide

  36. /BNFE5VQMF

    View Slide

  37. 4FQBM-FOHUI 4FQBM8JEUI 1FUBM-FOHUI 1FUBM8JEUI 4QFDJFT
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB
    4FUPTB

    View Slide

  38. *UFSBCMF5BCMF

    View Slide

  39. 5IF$BOEJEBUFT
    %BUB'SBNFT%BUB'SBNFT.FUB
    +VMJB%#
    2VFSZWFSTF 2VFSZKM

    View Slide

  40. 5IF$BOEJEBUFT 6QEBUFE

    5BCMFUSBJUTK*
    *UFSBCMF5BCMFTKM
    %BUB'SBNFT
    +VMJB%#
    2VFSZWFSTF
    BOENPSF

    %BUB'SBNFT.FUB
    2VFSZ

    View Slide