擅长:python、mysql、java
<p>您可以在pandas中使用concat函数</p>
<pre><code>df = pd.DataFrame(np.random.randn(100, 4), columns=list('ABCD'))
part1 = df.iloc[:,0:3]
part2 = df.iloc[:,3:]
pd.concat([part1,part2], axis=1)
</code></pre>
<p>有关Join、merge和concat <a href="http://pandas.pydata.org/pandas-docs/stable/merging.html" rel="nofollow noreferrer">check this link</a>的更多参考</p>