Sep-11-2021, 04:54 PM
I am trying to learn numpy and I am trying to print some data as shown below:
import numpy as np names = np.array([["Rami", "Taher", "Wahdan"],["First", "Middle", "Last"]]) print(names[[0,0],[1,0]])The output I am getting is:
Output:['Taher' 'Rami']
But it should show:Output:['Rami' 'First']
What did I do wrong?