I am trying to join two dataframes together as follows:
df3 = pd.merge(df1,df2, how='inner', on='key')
where df1 and df2 are large datasets with millions of rows. Basically how do I join them without having to create a third dataframe df3.
I just want to join one onto next, changing the original. I don't have enough memory to run so much on my server so I need something more efficient.
merge
function on theDataFrame
object as well, so maybe trydf1.merge(df2)
with the same arguments? – Donley