pandas学习笔记(六):合并(Operations)

  • (1)串联,把pandas的实体对象串联起来使用 concat()
df6 = pd.DataFrame(np.random.randn(10, 4))
df6
q = [df6[:3], df6[3:7], df6[8:]]
q

在这里插入图片描述

pd.concat(q)

最终串联后的得到的结果
在这里插入图片描述

  • (2)Join

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_41136216/article/details/106878066