Np.eye(5)[list]
Similar codes
- 0 vote102 views1 answer
- 0 vote54 views1 answer
- 16 votes116 views6 answers
- 0 vote133 views2 answers
- 0 vote122 views2 answers
- 1 vote103 views1 answer
- 0 vote141 views1 answer
- 1 vote103 views1 answer
- 2 votes89 views1 answer
- 0 vote137 views1 answer