Notice
Recent Posts
Recent Comments
Tags
- NewYork Times 읽기
- 티스토리 목차
- tistory toc
- jupyter notebook shell commands
- TOC
- tistory 목차
- magic command
- matplotlib 객제 지향 방식
- 티스토리 자동 목차
- fig ax 사용
05-07 14:09
Archives
develop myself
Python help, dir 본문
help
인터넷이 안 되는 상황에서 문서를 확인할 수 있다.
import numpy as np
import pandas as pd
# class
help(np.ndarray)
# function
help(np.array)
help(pd.DataFrame)
dir
python object(class, method 등등)를 확인할 수 있다.
dir(pd.DataFrame)
특정 조건을 만족하는 object를 찾을 경우
[ obj for obj in dir(pd.DataFrame) if ("na" in obj) & (not obj.startswith("_"))]
'DataScience > Python' 카테고리의 다른 글
matplotlib basic tips (0) | 2023.01.26 |
---|---|
pandas basic tips (0) | 2023.01.26 |
numpy basic tips (0) | 2023.01.26 |
jupyter notebook magic commands, shell commands (0) | 2023.01.26 |
Python formatting: format() method, f-string (0) | 2023.01.25 |
Comments