Np.eye(5)[list]
Similar codes
- 4 votes133 views6 answers
- 0 vote93 views1 answer
- 0 vote99 views2 answers
- 15 votes107 views4 answers
- 1 vote101 views1 answer
- 58 votes92 views6 answers
- 21 votes96 views5 answers
- 0 vote100 views1 answer
- 0 vote108 views1 answer
- 0 vote95 views1 answer