Converting dataframe to dictionary in pyspark without using pandas

后端 未结 0 719
天命终不由人
天命终不由人 2021-01-14 18:35

Followig up this question and dataframes, I am trying to convert a dataframe into a dictionary. In pandas I was using this using this:

df_3 = df_2.unstack().t         


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