Merge two python pandas data frames of different length but keep all rows in output data frame

后端 未结 3 686
甜味超标
甜味超标 2021-01-31 08:48

I have the following problem: I have two pandas data frames of different length containing some rows and columns that have common values and some that are different, like this:<

3条回答
  •  被撕碎了的回忆
    2021-01-31 09:22

    You can simply use merge with using on and list as well

    result = df1.merge(df2, on=['Column1'])
    

    For more information follow link

提交回复
热议问题