79480594

Date: 2025-03-03 09:20:36
Score: 0.5
Natty:
Report link

Your final dataframe df_join will have twice the column col1. once from df1 and from df2. Here is a join that works:

df_join = df1.select("col1").join(df2.select("col2"), df1["col1"] == df2["col2"], "inner")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Lazloo Xp