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

pandasでのOSS活動事例

Sinhrks
May 19, 2017
730

 pandasでのOSS活動事例

Stapy x 理研AIP オープンソース研究会
https://startpython.connpass.com/event/55579/

Sinhrks

May 19, 2017
Tweet

Transcript

  1. OSS׆ಈ঺հ 767 2017/5/17ݱࡏ 10 94 14 9 2 2 3

    65 265 1,535 9,608 ggfortify(R) pandas-ml Github Stars Org. Members (Committers) Contributors
  2. pandasͱ͸ import pandas as pd df = pd.read_csv(‘adult.csv’) df "EVMU%BUBTFUUBLFOGSPN6$*.-3FQPTJUPSZ

    -JDINBO .  6$*.BDIJOF-FBSOJOH3FQPTJUPSZ<IUUQBSDIJWFJDTVDJFEVNM>*SWJOF $"6OJWFSTJUZPG$BMJGPSOJB 4DIPPMPG*OGPSNBUJPOBOE$PNQVUFS4DJFODF 3FBEDTWpMF $PMVNOT *OEFY .JYFEEBUBUZQFT
  3. PyData Ecosystem (Scipy stack) #PLFI NBUQMPUMJC 4DJLJUMFBSO 4UBUTNPEFM /VN1Z 1Z5BCMFT

    42-"MDIFNZ *CJT 4DJ1Z 1Z4QBSL #MB[F%BTL +VQZUFS QBOEBT 6TFS*OUFSGBDF 7JTVBMJ[BUJPO #JH%BUB *0 $PNQVUBUJPO .BDIJOF-FBSOJOH 4UBUJTUJDT SQZ 0UIFS1SPHSBNNJOH -BOHVBHFT
  4. ίϛολͷ໾ׂ • Make decisions about: • The overall scope, vision

    and direction of the project. • Strategic collaborations with other organizations or individuals. • Specific technical issues, features, bugs and pull requests. • The services that are run by the project. • Regular community discussion doesn’t produce consensus.
  5. ࢖͍΍͘͢͢ΔͨΊʹ • Πϯετʔϧ͠΍͘͢ • ɹ • ֤छwheelఏڙ • APIΛΘ͔Γ΍͘͢ •

    issue্ͰͷσΟεΧογϣϯ • ίʔυϨϏϡʔ • υΩϡϝϯτΛΘ͔Γ΍͘͢ • υΩϡϝϯτϨϏϡʔ • Travis-CI Ͱͷdev൛υΩϡϝϯτϏϧυ & νΣοΫ
  6. υΩϡϝϯτ • ެࣜυΩϡϝϯτ • http://pandas.pydata.org/pandas-docs/stable/ • ॻ੶ • PythonʹΑΔσʔλ෼ੳೖ໳ /

    Wes McKinney • ༗ࢤυΩϡϝϯτ • Modern pandas / Tom Augspurger • https://tomaugspurger.github.io/modern-1.html
  7. ඼࣭୲อͷͨΊʹ • ෆ۩߹Λগͳ͘ • ੩తνΣοΫ (flake8) • ࣗಈςετ (Travis-CI, Appveyor,

    Circle-CI) • ΧόϨοδνΣοΫ (Codecov) • ύϑΥʔϚϯεΛྑ͘ • ύϑΥʔϚϯεςετ (Airspeed Velocity)
  8. ύϑΥʔϚϯεςετ • Airspeed Velocity • ࢦఆίϛοτͰςετˍίϛοτؒൺֱ • https://github.com/spacetelescope/asv All benchmarks:

    before after ratio [5049b5 ] [53ac28 ] 293.20ns 290.10ns 0.99 attrs_caching.getattr_dataframe_index.time_getattr_dataframe_index 3.13μs 3.08μs 0.98 attrs_caching.setattr_dataframe_index.time_setattr_dataframe_index 7.45ms 7.23ms 0.97 binary_ops.frame_add.time_frame_add 4.14ms 4.09ms 0.99 binary_ops.frame_add_no_ne.time_frame_add_no_ne 4.28ms 4.40ms 1.03 binary_ops.frame_add_st.time_frame_add_st 21.67ms 21.58ms 1.00 binary_ops.frame_float_div.time_frame_float_div 5.74ms 5.84ms 1.02 binary_ops.frame_float_div_by_zero.time_frame_float_div_by_zero 17.90ms 17.81ms 0.99 binary_ops.frame_float_floor_by_zero.time_frame_float_floor_by_zero 10.49ms 9.97ms 0.95 binary_ops.frame_float_mod.time_frame_float_mod 5.95ms 6.14ms 1.03 binary_ops.frame_int_div_by_zero.time_frame_int_div_by_zero 10.64ms 10.64ms 1.00 binary_ops.frame_int_mod.time_frame_int_mod 7.26ms 7.31ms 1.01 binary_ops.frame_mult.time_frame_mult 4.14ms 4.10ms 0.99 binary_ops.frame_mult_no_ne.time_frame_mult_no_ne
  9. ։ൃऀ޲͚υΩϡϝϯτ • ։ൃऀ޲͚ • ίϯτϦϏϡʔγϣϯΨΠυ • Gitͷ࢖͍ํ • ςετํ๏ •

    ίʔυελΠϧ • ϦϦʔεϊʔτͷॻ͖ํ • Specialities • … • ϝϯςφ޲͚ • ϦϦʔε࣌ͷνΣοΫϦετ • υΩϡϝϯτެ։ํ๏ • …