in NumPy by
What is 2d indexing? define one ex : num = np.array([1,2,3],[4,5,6],[7,8,9])

1 Answer

0 votes
by

num = np.array([[1,2,3],[4,5,6],[7,8,9]]) #double bracket here for 2d array

print(‘\n my 2d array : ‘,num)

Related questions

+1 vote
asked Jan 20, 2020 in Mathematics by rahuljain1
+3 votes
asked Jan 21, 2021 in C Plus Plus by SakshiSharma
+1 vote
asked Jan 28, 2020 in Data Handling by rahuljain1
...