콘텐츠로 이동

Jupyter 노트북

데이터 과학 및 대화 형 컴퓨팅을위한 포괄적 인 Jupyter Notebook 단축키 및 워크플로우.

기본 정보

Shortcut Mode Description
Enter Command Enter Edit Mode
Esc Edit Enter Command Mode
Shift+Enter Both Run Cell and Select Below
Ctrl+Enter Both Run Cell
Alt+Enter Both Run Cell and Insert Below
↑/↓ Command Select Cell Above/Below
A Command Insert Cell Above
B Command Insert Cell Below
X Command Cut Cell
C Command Copy Cell
V Command Paste Cell Below
Shift+V Command Paste Cell Above
DD Command Delete Cell
Z Command Undo Cell Deletion

셀 운영

Shortcut Mode Description
M Command Change to Markdown Cell
Y Command Change to Code Cell
R Command Change to Raw Cell
1-6 Command Change to Heading 1-6
Shift+M Command Merge Selected Cells
Ctrl+Shift+- Edit Split Cell at Cursor
Shift+J/K Command Extend Selection Below/Above
Shift+↑/↓ Command Extend Selection

Code 편집

Shortcut Mode Description
Tab Edit Code Completion or Indent
Shift+Tab Edit Tooltip
Ctrl+] Edit Indent
Ctrl+[ Edit Dedent
Ctrl+A Edit Select All
Ctrl+Z Edit Undo
Ctrl+Shift+Z Edit Redo
Ctrl+Y Edit Redo
Ctrl+Home Edit Go to Cell Start
Ctrl+End Edit Go to Cell End
Ctrl+Left/Right Edit Go Left/Right One Word
Ctrl+Backspace Edit Delete Word Before
Ctrl+Delete Edit Delete Word After

실행 코드

Shortcut Mode Description
Shift+Enter Both Run Cell, Select Below
Ctrl+Enter Both Run Cell
Alt+Enter Both Run Cell, Insert Below
Ctrl+K Command Interrupt Kernel
0,0 Command Restart Kernel
Shift+L Command Toggle Line Numbers
Shift+O Command Toggle Output

파일 작업

Shortcut Mode Description
Ctrl+S Both Save and Checkpoint
Ctrl+Shift+S Command Save As
Ctrl+O Command Open
Ctrl+N Command New Notebook
Ctrl+Shift+P Command Command Palette

전망과 배치

Shortcut Mode Description
Shift+Space Command Scroll Up
Space Command Scroll Down
Ctrl+Shift+L Command Toggle All Line Numbers
F Command Find and Replace
O Command Toggle Output
Shift+O Command Toggle Output Scrolling

매직 명령

Command Description
%run script.py Run Python script
%load script.py Load script into cell
%who List variables
%whos List variables with details
%time statement Time execution of statement
%timeit statement Time execution multiple times
%matplotlib inline Enable inline plots
%pwd Print working directory
%cd directory Change directory
%ls List directory contents
%history Show command history
%reset Reset namespace
%debug Enter debugger
%pdb on/off Toggle automatic debugger

셀 매직 명령

Command Description
%%time Time execution of entire cell
%%timeit Time execution of cell multiple times
%%bash Run cell as bash script
%%html Render cell as HTML
%%javascript Run cell as JavaScript
%%latex Render cell as LaTeX
%%markdown Render cell as Markdown
%%python2 Run cell with Python 2
%%python3 Run cell with Python 3
%%writefile filename Write cell contents to file

데이터 과학 Workflows

데이터 로딩 및 탐험

카지노사이트

데이터 시각화

카지노사이트

기계 학습 Pipeline

카지노사이트

Markdown 형식

기타 제품

카지노사이트

텍스트 포맷

카지노사이트

이름 *

카지노사이트

링크 및 이미지

카지노사이트

사이트맵

카지노사이트

수학 (LaTeX)

카지노사이트

최고의 연습

회사연혁

  • 의미 있는 변수명
  • 코멘트 및 docstrings 추가
  • 여러 세포로 복잡한 작업
  • 반복된 가동을 위한 기능 사용
  • 상단에 libraries 가져 오기

데이터 분석 Workflow

  1. ** 데이터 로딩**: 수입 및 초기 탐험
  2. ** 데이터 청소 **: 핸들 누락 값, outliers
  3. Exploratory Data Analysis: 시각화 및 통계
  4. 명세 Feature Engineering: 새로운 기능 만들기
  5. 명세 ** Modeling**: 기차 및 평가 모델
  6. 명세 ** 결과**: 결과 해석 및 시각화

성능 팁

  • NumPy/Pandas를 이용한 벡터화 작업
  • 가능할 때 루프를 피하십시오
  • 적절한 데이터 유형 사용
  • 큰 세포의 명확한 산출
  • 재시작 커널 주기적으로

회사연혁

  • Markdown 셀을 사용하여 설명
  • 문서 가정 및 결정
  • 데이터 소스 정보 포함
  • 결론 및 다음 단계 추가
  • 사용 명확한 단면도 headers