[Python] Pandas dataframe ๊ฒฐํฉ, ์กฐ์ธ, ๋ณํฉ(Join, Merge)
Join 1. ์์ ๋ฐ์ดํฐํ๋ ์ ์์ฑ import pandas as pd df = pd.DataFrame({'key': ['K0', 'K1', 'K2', 'K3', 'K4', 'K5'], 'A': ['A0', 'A1', 'A2', 'A3', 'A4', 'A5']}) other = pd.DataFrame({'key': ['K0', 'K1', 'K2'], 'B': ['B0', 'B1', 'B2']}) 2. ์ด์ Index ์ง์ ํด์ Join df.join(other, lsuffix = '_caller', rsuffix = '_other') 3. Key๋ฅผ index๋ก ์ง์ ํด Join df.set_index('key').join(other.set_index('key')) 4. join ๋ฉ์๋์ parameter ..