2021年1月15日星期五

Assigning records from one data frame to another

I have two data frames, Df and Df2. I want to assign records in Df2 to Df1 to create the Df2_assigned_Df_1 data frame

Df.

  1. A
  2. B
  3. C
  4. C
  5. I
  6. J
  7. J

Df2

  1. C
  2. A
  3. J
  4. C

Df2_assigned_toDf_1

  1. A ----- 2.A
  2. B
  3. C ----- 1.C
  4. C ----- 4.C
  5. I
  6. J ----- 3.J
  7. J

How can I create Df2_assigned_toDf_1 ?

https://stackoverflow.com/questions/65745806/assigning-records-from-one-data-frame-to-another January 16, 2021 at 10:03AM

没有评论:

发表评论