python数据分析常用工具

1 pandas中dataframe拼接

上下数据拼接:

1 # 参数axis=0表示上下合并,1表示左右合并,ignore_index=True表示忽略原来的索引
2 res = pd.concat([df1,df2,df3],axis=0,ignore_index=True)

猜你喜欢

转载自www.cnblogs.com/uncleGulugulu/p/10276792.html