One - One Code All

Blog Content

pandas的dataframe合并concat,append

Python 统计学-科学计算   2011-04-05 22:58:11

pandas的dataframe合并concat,append

将两个DataFrame拼接起来,除了concat还有append()

concat是不支持这样的用法的
dfA = pd.concat(dfA, dfB)

但是append()支持!!
dfA = dfA.append(dfB)


上一篇:python的dataframe重建索引reset_index(drop=True)
下一篇:pandas追加行append

The minute you think of giving up, think of the reason why you held on so long.