QuestionQ73
VerifiedImplement Snowflake data science best practicesA Data Scientist is working with two Snowpark DataFrames that each contain a column named id. The objective is to join these DataFrames using the id column.
new_df = df1.join(df2, df1["id"] == df2["id"])
After executing the following code:
new_df.select(col("id"), col("name"), col("country")).show()
The Scientist gets this error:
Error (1303): The reference to column 'ID' is ambiguous...
Which method should the Scientist use to resolve this error?
Community Discussion