I am trying to merge two tables into the final one as seen in the figure below.
How can I do this in pandas? What type of join is this called?
df1.merge(df2, on="grid_id", how="outer")
(See docs)
If you want, read the full explanation on .concat()
, .merge()
, and .join()
.