轴向连接(concat) Numpy import numpy as np import pandas as pd from pandas import Series arr = np.arange(12).reshape(3,4) arr array([[ 0, 1, 2, 3], [ 4, 5, 6, 7], [ 8, 9, 10, 11]]) # axis默认为行,想合并列可以设置axis=1 np.concatenate([arr,arr]) array([[ 0, 1, 2, 3],…