Arrays of different data type

Report a typo

There is a new array in your code. Have a look at the input. The first integer shows an index of the first row you need to extract. The second one shows an index of the second row you need to extract.

Transform the first extracted row into np.str_. Transform the second extracted row into np.float64. Print the results.

Sample Input 1:

0
1

Sample Output 1:

['-34' '2' '0']
[  0.  -4. 123.]
Write a program in Python 3
import numpy as np

array = np.array([[-34, 2, 0],
[0, -4, 123],
[-201, 0, -3]], dtype=np.int64)
___

Create a free account to access the full topic