Np.eye(5)[list]
Similar codes
- 0 vote129 views1 answer
- 9 votes119 views4 answers
- 0 vote110 views1 answer
- 1 vote110 views1 answer
- 0 vote106 views1 answer
- 1 vote114 views1 answer
- 2 votes117 views1 answer
- 3 votes118 views1 answer
- 14 votes110 views4 answers
- -1 vote125 views1 answer