apply threshold on column values in a pysaprk dataframe and convert the values to binary 0 or 1

前端 未结 0 911
心在旅途
心在旅途 2020-12-02 12:23

I have a PySpark dataframe

simpleData = [("person0",10, 10), \\
    ("person1",1, 1), \\
    ("person2",1, 0), \\
    ("per         


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