[Python] 데이터 결합 (np.concatenate, pd.concat)
import pandas as pd import numpy as np from pandas import Series, DataFrame #. 배열 결합 (np.concatenate)np.concatenate?concatenate((a1, a2, ...), axis=0, out=None) ar1 = np.arange(4).reshape(2,2)array([[0, 1], [2, 3]])np.concatenate([ar1, ar1], axis=1)array([[0, 1, 0, 1], [2, 3, 2, 3]])np.concatenate([ar1, ar1], axis=0)array([[0, 1], [2, 3], [0, 1], [2, 3]]) #. 데이터 프레임 결합 (pd.concat)pd.concat?pd.co..
Python/Process
2019. 2. 14. 21:45