How to convert data into a matrix using index numbers

前端 未结 0 1316
余生分开走
余生分开走 2021-02-01 02:33

Suppose I have a dataset df like this, which contains adjacency information:

1 2 3 4
2 1 4
3 1
4 1 2 5 6 7
5 4
6 4 7
7 4 6

I want to convert this

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