pd.merge(left, right, how="left", on="key")
on
은 무엇을 기준으로 병합시킬 것인지 지정how
는 어디에 병합시킬 것인지 지정. left
로 정해졌으면 left
의 key
는 전부 보존됨right
에 left
의 key
에 대응되는 데이터가 없으면 Nan
how="outer", how="inner"
등등도 있음. inner
가 기본값data_result.set_index("구별", inplace=True)
index
로 지정한다는 것index
를 재지정하는 경우가 있음unique
한 데이터를 index
로 잡자data_result.corr()
%matplotlib inline
옵션을 사용2D 그래프를 담당
import matplotlib.pyplot as plt
# %matplotlib inline
get_ipython().run_line_magic("matplotlib", "inline")
numpy
의 sin
함수np.arrage(a, b, s)
np.sin(value)