Python Forum
merge two dataframes with different number of rows
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
merge two dataframes with different number of rows
#6
Alternatively one can just join two dataframes df_1.join(df_2) or specific column df_1.join(df_2['Pay'])
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Messages In This Thread
RE: merge two dataframes with different number of rows - by perfringo - Feb-05-2021, 03:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Sequential number for rows retrieved and storing the Primary UKey to the line number GYKR 2 637 Aug-22-2023, 10:14 AM
Last Post: GYKR
  Check DataFrames with different sorting in columns and rows Foxyskippy 0 815 Nov-19-2022, 07:49 AM
Last Post: Foxyskippy
  The code I have written removes the desired number of rows, but wrong rows Jdesi1983 0 1,655 Dec-08-2021, 04:42 AM
Last Post: Jdesi1983
  Pandas DataFrame combine rows by column value, where Date Rows are NULL rhat398 0 2,157 May-04-2021, 10:51 PM
Last Post: rhat398
  Indexing [::-1] to Reverse ALL 2D Array Rows, ALL 3D, 4D Array Columns & Rows Python Jeremy7 8 7,334 Mar-02-2021, 01:54 AM
Last Post: Jeremy7
  merge dataframes imatiasmb 1 1,499 Oct-17-2020, 06:44 PM
Last Post: klllmmm
  How to merge three DataFrames based on specific column Mekala 0 1,832 Sep-08-2020, 02:01 PM
Last Post: Mekala
  Merge 2 dataframes but avoid double summing of rows? vinaysalian17 0 1,885 Jun-03-2020, 01:48 AM
Last Post: vinaysalian17
  Mysql returning number of rows not data AkaAndrew123 4 2,860 Jun-10-2019, 02:31 PM
Last Post: AkaAndrew123
  Merge rows of 2 arrays vipinv23 2 2,000 Jan-27-2019, 05:45 PM
Last Post: aakashjha001

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020