Select a row and display the column name based on max value in pyspark

前端 未结 0 1460
忘了有多久
忘了有多久 2021-02-20 13:33

I have a Pyspark data frame as

| ID|colA|colB|colC|
+---+----+----+----+
|ID1|   3|   5|   6|
|ID2|   4|  12|   7|
|ID3|   2|  20|  22|
+---+----+----+----+


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