Np.eye(5)[list]
Similar codes
- 24 votes97 views10 answers
- 8 votes98 views2 answers
- 0 vote189 views2 answers
- 1 vote111 views3 answers
- 3 votes101 views1 answer
- 1 vote101 views2 answers
- 1 vote100 views2 answers
- 0 vote113 views1 answer
- 0 vote103 views1 answer
- 3 votes110 views2 answers