PYTHON
extract column of n array
import numpy as np
the_arr = np.array([[0, 1, 2, 3, 5, 6, 7, 8],
[4, 5, 6, 7, 5, 3, 2, 5],
[8, 9, 10, 11, 4, 5, 3, 5]])
print(the_arr[:, 1:5])
extract column of n array
import numpy as np
the_arr = np.array([[0, 1, 2, 3, 5, 6, 7, 8],
[4, 5, 6, 7, 5, 3, 2, 5],
[8, 9, 10, 11, 4, 5, 3, 5]])
print(the_arr[:, 1])
extract column of n array
import numpy as np
the_arr = np.array([[0, 1, 2, 3, 5, 6, 7, 8],
[4, 5, 6, 7, 5, 3, 2, 5],
[8, 9, 10, 11, 4, 5, 3, 5]])
print(the_arr[0:2, 1:3])
extract column of n array
import numpy as np
the_arr = np.array([[0, 1, 2, 3, 5, 6, 7, 8],
[4, 5, 6, 7, 5, 3, 2, 5],
[8, 9, 10, 11, 4, 5, 3, 5]])
print(the_arr[:, 1:5])
extract column of n array
import numpy as np
the_arr = np.array([[0, 1, 2, 3, 5, 6, 7, 8],
[4, 5, 6, 7, 5, 3, 2, 5],
[8, 9, 10, 11, 4, 5, 3, 5]])
print(the_arr[:, 1])
extract column of n array
import numpy as np
the_arr = np.array([[0, 1, 2, 3, 5, 6, 7, 8],
[4, 5, 6, 7, 5, 3, 2, 5],
[8, 9, 10, 11, 4, 5, 3, 5]])
print(the_arr[0:2, 1:3])