pd.concat() 实现数据拼接

源于: 执行类代码 – ExcelExtractionClass.py – 函数contact_excel

pandas.concat(  objs, 
                axis=0, 
                join='outer', 
                join_axes=None, 
                ignore_index=False, 
                keys=None, 
                levels=None, 
                names=None,
                verify_integrity=False, 
                copy=True)

主要参数说明:

objs: 需要拼接的对象。
axis: 默认为0,按行拼接;如果设成1,则是按照列进行拼接。
join: 拼接的方式,默认为outer,表示index全部需要; inner,表示只取index重合的部分

发布了255 篇原创文章 · 获赞 28 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/weixin_43283397/article/details/104279928