Contributing to pandas (Korean)

28
Contributing to pandas Python Korea 20171021 [email protected] / @scari_net 1

Transcript of Contributing to pandas (Korean)

Contributing to pandas

Python Korea 20171021 [email protected] / @scari_net 1

pandas?

Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more — https://github.com/pandas-dev/pandas

Python Korea 20171021 [email protected] / @scari_net 2

? " "

••• •

Python Korea 20171021 [email protected] / @scari_net 3

?

• Contributor

Python Korea 20171021 [email protected] / @scari_net 4

?

• 17 • 900 (2016.11 500 )• ... !

Python Korea 20171021 [email protected] / @scari_net 5

.

1. , ⭐ "2. .

Python Korea 20171021 [email protected] / @scari_net 6

!

• NUMFocus

• https://www.numfocus.org/open-source-projects/

Python Korea 20171021 [email protected] / @scari_net 7

8

! (again)

• donate to pandas

• https://www.flipcause.com/widget/give_now/MzA3OA==

Python Korea 20171021 [email protected] / @scari_net 9

• http://pandas.pydata.org/pandas-docs/stable/

• ->

• DOC: PR prefix .

• : https://github.com/lyda/misspell-check

Python Korea 20171021 [email protected] / @scari_net 10

• • • • ( )

Python Korea 20171021 [email protected] / @scari_net 11

12

• • • • / pd.show_versions()

Python Korea 20171021 [email protected] / @scari_net 13

14

• ENH:

• BUG:

• DOC:

• TST:

• BLD:

• PERF:

• CLN: Python Korea 20171021 [email protected] / @scari_net 15

• Python, Cython, C

• git GitHub, Python

• ! ->

• ! ->

Python Korea 20171021 [email protected] / @scari_net 16

• good first issue <-

• Difficulty Novice / Intermediate / Advanced

• Effort Low / Medium / High

• Performance

• More on https://github.com/pandas-dev/pandas/labels

Python Korea 20171021 [email protected] / @scari_net 17

Fork

1. Star !2. Fork

Python Korea 20171021 [email protected] / @scari_net 18

Clone clone , upstream

git clone [email protected]:your-user-name/pandas.git pandas-yournamecd pandas-yournamegit remote add upstream git://github.com/pandas-dev/pandas.git

Python Korea 20171021 [email protected] / @scari_net 19

/w Anacondapandas_dev ,

conda create -n pandas_dev python=3 --file ci/requirements_dev.txt

: Anaconda3-5.0.0 .

4.4.0 -c conda-forge .

Python Korea 20171021 [email protected] / @scari_net 20

$ source activate pandas_dev$ python setup.py build_ext --inplace

pandas Python ,

import pandas as pdpd.show_versions()

INSTALLED VERSIONS------------------commit: 6f03530c5a4e662eb65791730e8b7edd4ea16983python: 3.6.2.final.0python-bits: 64OS: DarwinOS-release: 17.0.0

Python Korea 20171021 [email protected] / @scari_net 21

pdb.set_trace()

• pdb: https://docs.python.org/3/library/pdb.html

• Traceback breakpoint

import pdbpdb.set_trace()

• R&D. Reset and Debug!

Python Korea 20171021 [email protected] / @scari_net 22

Test

• • ./pandas/tests/

• • GH1234

Python Korea 20171021 [email protected] / @scari_net 23

Linting

• PEP8• CI git diff master -u -- '*.py' | flake8 --diff

Python Korea 20171021 [email protected] / @scari_net 24

What's New

• doc/source/whatsnew/v0.xx.xx.txt

Python Korea 20171021 [email protected] / @scari_net 25

PR

1. commit squash

2. push

3. GitHub Pull Request

4. PR

5. !

Python Korea 20171021 [email protected] / @scari_net 26

! !!1

1 https://www.pycon.kr/2017/program/tutorials/

27

• https://opensource.guide/

• https://naver.github.io/OpenSourceGuide/book/index.html

• https://github.com/pandas-dev/pandas/blob/master/doc/source/contributing.rst#working-with-the-code

Python Korea 20171021 [email protected] / @scari_net 28