How to convert a spark dataframe to a matrix with indices?

前端 未结 0 1982
小鲜肉
小鲜肉 2021-01-06 01:30

I have a spark dataframe df looking like this:

C1toC1 C1toC2 C1toC3 C2toC1 C2toC2 C2toC3 C3toC1 C3toC2 C3toC3
2      0      6      7      32     3      3              


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