79316537

Date: 2024-12-29 23:43:07
Score: 0.5
Natty:
Report link

I think that this also works and can be a bit simpler.

df1 = pd.DataFrame({'A':[1, 3], 'B':[2, 4]})
df2 = pd.DataFrame({'C':[5, 7, 9], 'D':[6, 8, 10]})

pd.merge(df1, df2, left_index=True, right_index=True, how='outer')
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: lye012