How to make two columns from 1 column while dividng data between them in spark?

后端 未结 0 897
后悔当初
后悔当初 2020-12-12 01:50

val rdd= sc.parallelize(List(41,42,43,44,45,46,47,48,49,50))

val df = rdd.toDF("numbers")

val now = what.select(when($"numbers" % 2         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题