Answers for "spark dataframe add column with function"

0

spark dataframe add column with function

val myDF = sqlContext.parquetFile("hdfs:/to/my/file.parquet")

myDF.withColumn("Code", coder(myDF("Amt")))
Posted by: Guest on July-29-2020

Code answers related to "spark dataframe add column with function"

Browse Popular Code Answers by Language