Np.eye(5)[list]
Similar codes
- 0 vote193 views1 answer
- 5 votes213 views1 answer
- 0 vote218 views1 answer
- 0 vote213 views1 answer
- 2 votes209 views1 answer
- 0 vote224 views1 answer
- 1 vote207 views1 answer
- -1 vote173 views2 answers
- 0 vote222 views1 answer
- 0 vote224 views1 answer