Answers for "how to add a column to a dataframe in scala spark permanent"

0

how to add a column to a dataframe in scala spark permanent

val df2 = df.select(col("EmpId"),col("Salary"),lit("1").as("lit_value1"))
df2.show()
Posted by: Guest on March-30-2021

Code answers related to "how to add a column to a dataframe in scala spark permanent"

Browse Popular Code Answers by Language