简体   繁体   中英

how to add two dataframes with different column names vertically

In python using pandas, I have two dataframes df1 and df2 as shown in figure below. Is there any way to add the two dataframes vertically to obtain a 3rd dataframe "df3" to look like as shown in the figure below.

Thanks in advance数据帧 DF1、DF2 和 DF3

如果您有 Pandas 的基本知识,您可以使用Concatenate pandas查看此文档,应用程序应该没问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM