PySpark: Fill NAs with mode of column based on aggregation of other columns

前端 未结 0 1401
故里飘歌
故里飘歌 2021-01-28 06:05

I have a dataframe with 4 columns:

# Compute the mode to fill NAs for Item
values = [(None, \'Red\', 3, 10), (None, \'Red\', 6, 20), (\'A\', \'Green\', 5, 30),
           


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