Skip to content

Instantly share code, notes, and snippets.

@yjinheon
Last active September 24, 2023 15:59
Show Gist options
  • Save yjinheon/2188e99eeeb781fd08d60fa42fae0c11 to your computer and use it in GitHub Desktop.
Save yjinheon/2188e99eeeb781fd08d60fa42fae0c11 to your computer and use it in GitHub Desktop.
reference_link

요약

프로젝트 디렉토리는 프로젝트 별로 따로 관리

  • 기본적으로 본인이 속한 조직의 가이드라인을 따를 것
  • 폴더명은 소문자
  • 단어는 대시/하이픈(-)으로 구분
    • 파이썬 모듈을 개발할 때는 언더스코어(_)로 구분할 것
  • 큰 프로젝트라면 파일들을 다음 서브디렉토리에 나누어 관리할 것
    • ./data
    • ./R R코드
    • ./script : 파이썬 코드

깃 버전관리 관례

  • 모든 프로젝트 코드를 버전관리할 것
  • 한번쓰고 버리는 코드도 버전관리할 것
  • 의미있는 README.md 파일을 작성할 것
  • 자주 커밋할 것

References

pandas 함수들 (pandas utility)

주요 pandas 함수 기능 정리

Missing Data

  • isna
  • isnull
  • notna
  • notnull
  • dropna
  • fillna

DataFrame Handling

  • index
  • values
  • columns
  • dtypes
  • info
  • select_dtypes
  • loc
  • iloc
  • insert
  • head
  • tail
  • apply
  • applymap
  • aggregate
  • drop
  • rename
  • replace
  • nsmallest
  • nlargest
  • sort_values
  • sort_index
  • value_counts
  • describe
  • shape : DF 차원 파악

Visualization

  • plot
  • plot.area
  • plot.bar
  • plot.barh
  • plot.box
  • plot.density
  • plot.hexbin
  • plot.hist
  • plot.kde
  • plot.line
  • plot.pie
  • plot.scatter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment