Add distinct count of a column to each row in PySpark

前端 未结 0 1106
悲哀的现实
悲哀的现实 2020-12-15 18:13

I need to add distinct count of a column to each row in PySpark dataframe.

Example: If the original dataframe is this:

+----+----+
|col1|col2|
+----+--         


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