replace column values in one dataframe by values of another dataframe

前端 未结 5 1330
梦如初夏
梦如初夏 2020-11-27 16:49

I have two dataframes , the first one has 1000 rows and looks like:

Date            Group         Family       Bonus
2011-06-09      tri23_1       Laavin             


        
5条回答
  •  萌比男神i
    2020-11-27 17:46

    just use pandas join, you can refer to detail link: http://pandas.pydata.org/pandas-docs/stable/merging.html

    df1.join(df2,on='Group')
    

提交回复
热议问题