Notice
Recent Posts
Recent Comments
05-07 14:09
Archives
관리 메뉴

develop myself

Python help, dir 본문

DataScience/Python

Python help, dir

insightous 2023. 1. 26. 16:19

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