How to only keep the rows of pyspark dataframe with the highest value of a column for every user(another column)?

前端 未结 0 766
天命终不由人
天命终不由人 2020-12-15 14:15

I have a PySpark dataframe-

df = spark.createDataFrame([
    ("u1", "india", 10),
    ("u1", "australia", 12),
    (&q         


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